This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Have os.PathLike inherit from typing.Protocol
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon
Priority: normal Keywords:

Created on 2019-11-21 19:49 by brett.cannon, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg357206 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2019-11-21 19:49
Since os.PathLike explicitly defines a a protocol, it would make sense to have it inherit from typing.Protocol instead of abc.ABC.
msg357207 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2019-11-21 19:50
Closing as importing 'typing' in 'os' is probably too much and would impact start-up time.
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 83066
2019-11-21 19:50:07brett.cannonsetstatus: open -> closed
resolution: rejected
messages: + msg357207

stage: resolved
2019-11-21 19:49:42brett.cannoncreate