8000 Add Text alias. · python/typing@6da9fc2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6da9fc2

Browse files
author
Guido van Rossum
committed
Add Text alias.
1 parent 4cbbad0 commit 6da9fc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pep-0484.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,8 @@ Convenience definitions:
14281428

14291429
* AnyStr, defined as ``TypeVar('AnyStr', str, bytes)``
14301430

1431+
* Text, a simple alias for ``str`` in Python 3, for ``unicode`` in Python 2
1432+
14311433
* NamedTuple, used as
14321434
``NamedTuple(type_name, [(field_name, field_type), ...])``
14331435
and equivalent to

0 commit comments

Comments
 (0)
0