Skip to content

Commit 793b036

Browse files
committed
Add TYPE_CHECKING builtin
1 parent ef06508 commit 793b036

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/bltinmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3407,6 +3407,7 @@ _PyBuiltin_Init(PyInterpreterState *interp)
34073407
SETBUILTIN("tuple", &PyTuple_Type);
34083408
SETBUILTIN("type", &PyType_Type);
34093409
SETBUILTIN("zip", &PyZip_Type);
3410+
SETBUILTIN("TYPE_CHECKING", Py_False);
34103411
debug = PyBool_FromLong(config->optimization_level == 0);
34113412
if (PyDict_SetItemString(dict, "__debug__", debug) < 0) {
34123413
Py_DECREF(debug);

0 commit comments

Comments
 (0)