News for hackers. Stuff that matters.
Re:Python Type Hints – How to Handle Optional Imports by nerdponx on Wednesday January 05, 2022 @02:36AM (#29806215)
Mypy has hard-coded support for `sys.version_info`.
Re:Python Type Hints – How to Handle Optional Imports by lozenge on Wednesday January 05, 2022 @07:00AM (#29807934)
And a command line argument to set its value.

If you're targeting multiple Python versions your CI should be running mypy multiple times.