[issue37920] Support subscripting os.PathLike and make it valid at runtime

Guido van Rossum report at bugs.python.org
Thu Aug 22 15:34:30 EDT 2019


Guido van Rossum <guido at python.org> added the comment:

Making an existing stdlib class generic has to be considered carefully, otherwise it may break backward compatibility.

As I wrote in the typeshed issue, I actually think the status quo is fine. But I'd like to hear you out about how it causes problems in VS Code (that can't be fixed by adapting VC Code to reality).

----------
versions: +Python 3.9 -Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37920>
_______________________________________


More information about the Python-bugs-list mailing list