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:
parent
7221386f27
commit
1a92d6ea0d
|
@ -2162,8 +2162,8 @@ Notes:
|
||||||
# # type: () -> None # This is OK
|
# # type: () -> None # This is OK
|
||||||
|
|
||||||
When checking Python 2.7 code, type checkers should treat the ``int`` and
|
When checking Python 2.7 code, type checkers should treat the ``int`` and
|
||||||
``long`` types as equivalent. For parameters typed as ``unicode`` or
|
``long`` types as equivalent. For parameters typed as ``Text``, arguments of
|
||||||
``Text``, arguments of type ``str`` should be acceptable.
|
type ``str`` as well as ``unicode`` should be acceptable.
|
||||||
|
|
||||||
Rejected Alternatives
|
Rejected Alternatives
|
||||||
=====================
|
=====================
|
||||||
|
|
Loading…
Reference in New Issue