[docs] [issue29002] typing.AnyStr doc is unclear about python2 unicode support

Jim Fasarakis-Hilliard report at bugs.python.org
Sat Dec 17 20:11:03 EST 2016


Jim Fasarakis-Hilliard added the comment:

The ``typing`` module doesn't exist in Python 2.7. 

All code samples provided in the docs *work* since no type-checking is performed by Python. That is, no enforcing of the types provided is made, that's for 3rd party packages to supply.

----------
nosy: +Jim Fasarakis-Hilliard

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29002>
_______________________________________


More information about the docs mailing list