PEP 484: Remove statement about unicode, in the python2.7 section. (#302)

See https://github.com/python/typing/issues/418#issuecomment-313753006.
Let's leave it up to type-checkers whether they want `unicode`, in Python 2
code, to mean "only unicode" or "str or unicode".
This commit is contained in:
Matthias Kramm 2017-07-18 13:59:39 -07:00 committed by Guido van Rossum
parent 7221386f27
commit 1a92d6ea0d
1 changed files with 2 additions and 2 deletions

View File

@ -2162,8 +2162,8 @@ Notes:
# # type: () -> None # This is OK
When checking Python 2.7 code, type checkers should treat the ``int`` and
``long`` types as equivalent. For parameters typed as ``unicode`` or
``Text``, arguments of type ``str`` should be acceptable.
``long`` types as equivalent. For parameters typed as ``Text``, arguments of
type ``str`` as well as ``unicode`` should be acceptable.
Rejected Alternatives
=====================