Skip to content

Commit fa18517

Browse files
committed
PEP 484: Remove statement about unicode, in the python2.7 section.
See python/typing#418 (comment). Let's leave it up to type-checkers whether they want `unicode`, in Python 2 code, to mean "only unicode" or "str or unicode".
1 parent dba43db commit fa18517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pep-0484.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,8 +2149,8 @@ Notes:
21492149
# # type: () -> None # This is OK
21502150

21512151
When checking Python 2.7 code, type checkers should treat the ``int`` and
2152-
``long`` types as equivalent. For parameters typed as ``unicode`` or
2153-
``Text``, arguments of type ``str`` should be acceptable.
2152+
``long`` types as equivalent. For parameters typed as ``Text``, arguments of
2153+
both ``str`` and ``unicode`` should be acceptable.
21542154

21552155
Rejected Alternatives
21562156
=====================

0 commit comments

Comments
 (0)