Add TYPE_CHECKING = True

This commit is contained in:
Guido van Rossum
2016-06-08 16:06:48 -07:00
parent 0b19fb471c
commit 89dfe15008
2 changed files with 4 additions and 0 deletions

View File

@@ -187,6 +187,8 @@ class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):
Text = unicode
TYPE_CHECKING = True
class IO(Iterable[AnyStr], Generic[AnyStr]):
# TODO detach
# TODO use abstract properties

View File

@@ -254,6 +254,8 @@ class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):
Text = str
TYPE_CHECKING = True
class IO(Iterable[AnyStr], Generic[AnyStr]):
# TODO detach
# TODO use abstract properties