[issue38885] Have os.PathLike inherit from typing.Protocol

2019-11-21 Thread Brett Cannon


Brett Cannon  added the comment:

Closing as importing 'typing' in 'os' is probably too much and would impact 
start-up time.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38885] Have os.PathLike inherit from typing.Protocol

2019-11-21 Thread Brett Cannon


New submission from Brett Cannon :

Since os.PathLike explicitly defines a a protocol, it would make sense to have 
it inherit from typing.Protocol instead of abc.ABC.

--
components: Library (Lib)
messages: 357206
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Have os.PathLike inherit from typing.Protocol
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com