Skip to content

Commit 1a92d6e

Browse files
matthiaskrammgvanrossum
authored andcommitted
PEP 484: Remove statement about unicode, in the python2.7 section. (#302)
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 7221386 commit 1a92d6e

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
@@ -2162,8 +2162,8 @@ Notes:
21622162
# # type: () -> None # This is OK
21632163

21642164
When checking Python 2.7 code, type checkers should treat the ``int`` and
2165-
``long`` types as equivalent. For parameters typed as ``unicode`` or
2166-
``Text``, arguments of type ``str`` should be acceptable.
2165+
``long`` types as equivalent. For parameters typed as ``Text``, arguments of
2166+
type ``str`` as well as ``unicode`` should be acceptable.
21672167

21682168
Rejected Alternatives
21692169
=====================

0 commit comments

Comments
 (0)