19 Jan
2021
19 Jan
'21
6:06 a.m.
Doesn't explicitly setting it yourself still work? ``` TYPE_CHECKING = False if TYPE_CHECKING: import xxx # modules used only in type hints. ``` This seems to work for mypy, at least. Even just doing `if False:` works correctly (and is arguably the most efficient at runtime).