https://vickiboykis.com/2023/12/11/why-if-type_checking/
Why if TYPE_CHECKING?
Vicki Boykis
Dec 11 2023
“Typechecking by mypy is more meticulous than the checking that happens at runtime, so we have to do hacks in order to get code that would otherwise run to pass typechecking, particularly when working with circular dependencies.”