Skip to content

Commit 73412a8

Browse files
committed
Add doc
1 parent 793b036 commit 73412a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/library/constants.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ A small number of constants live in the built-in namespace. They are:
7070
``Ellipsis`` is the sole instance of the :data:`types.EllipsisType` type.
7171

7272

73+
.. data:: TYPE_CHECKING
74+
75+
This constant is same to :data:`typing.TYPE_CHECKING`.
76+
It is always ``False`` at runtime, but third party static type checkers
77+
assumes it to be ``True``.
78+
79+
.. versionadded:: next
80+
81+
7382
.. data:: __debug__
7483

7584
This constant is true if Python was not started with an :option:`-O` option.

0 commit comments

Comments
 (0)