[New-bugs-announce] [issue38885] Have os.PathLike inherit from typing.Protocol

Brett Cannon report at bugs.python.org
Thu Nov 21 14:49:42 EST 2019


New submission from Brett Cannon <brett at python.org>:

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 <report at bugs.python.org>
<https://bugs.python.org/issue38885>
_______________________________________


More information about the New-bugs-announce mailing list