![]() Using future annotations, type annotations become strings at runtime and don't impact performance. This is not possible to do with T.cast though, because it is a function argument instead of an annotation. Quote the type argument everywhere in order to have the same effect as future annotations. This also allows linters to better detect in some cases that a given import is typing-only. |
||
---|---|---|
.. | ||
__init__.py | ||
interpreter.py | ||
introspection.py | ||
postprocess.py | ||
printer.py | ||
visitor.py |