DEV Community

Discussion on: Advanced Static Typing with mypy (part1)

Collapse
 
chadrik profile image
Chad Dombrova

Yes, if TYPE_CHECKING is the way to go. Note that if False also works, if you want to completely avoid importing the typing module.