[Python-ideas] Type hinting for path-related functions

Guido van Rossum guido at python.org
Tue May 17 13:34:44 EDT 2016


On Tue, May 17, 2016 at 9:33 AM, Brett Cannon <brett at python.org> wrote:
> No comments from me, although it's going to be interesting making this all
> work in Typeshed if we backport the PathLike support to the pathlib
> constructor to 3.4 and 3.5 but (obviously) not os.PathLike itself.

By then mypy should support "if sys.version_info >= ..." checks.
(There's some work required still:
https://github.com/python/mypy/issues/698)

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-ideas mailing list