Skip to content

Commit 406718c

Browse files
committed
implement TYPE_CHECKING using __type_checking__
1 parent ec7ce6b commit 406718c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3409,7 +3409,7 @@ def __ror__(self, other):
34093409

34103410

34113411
# Constant that's True when type checking, but False here.
3412-
TYPE_CHECKING = False
3412+
TYPE_CHECKING = __type_checking__
34133413

34143414

34153415
class IO(Generic[AnyStr]):

0 commit comments

Comments
 (0)