4 ms·
> Now I need You don't need to do anything, you can ignore all type hints > use IF to guard it in CI in every file Are you talking about "if TYPE_CHECKING:"?
by notatallshaw 3y ago
> Now I need
You don't need to do anything, you can ignore all type hints
> use IF to guard it in CI in every file
Are you talking about "if TYPE_CHECKING:"?
Your other option is to put "from __future__ import annotations" at the top of the file, or wait for Python 3.13 when PEP 649 lands and type annotations become lazily evaluated.