Hacker News new | ask | show | jobs
by charliermarsh 1397 days ago
Yeah that's correct! It's a valid workaround, and we end up doing that occasionally. (In Python 3.5 and newer it's `if TYPE_CHECKING` instead of `if False`.)