mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
"> (3,)" works but looks like the code is checking for Python 4. "<= (3, 5)" was intended to check for versions up to and including 3.5, and probably works that way in current type checkers. However, sys.version_info is actually a 5-tuple that is greater than (3, 5), so a hypothetical type checker that uses the full version info would interpret this check incorrectly. This ensures that all version_info comparisons use <, >=, ==, or !=.