Closed s-knibbs closed 3 years ago
Mypy 0.800 now supports PEP 604. To make use of this here for python < 3.10, we'd need to re-implement get_type_hints from the typing module and use an ast transformation to turn this:
get_type_hints
str | int | None
into this:
typing.Union[str, int, NoneType]
Mypy 0.800 now supports PEP 604. To make use of this here for python < 3.10, we'd need to re-implement
get_type_hints
from the typing module and use an ast transformation to turn this:into this: