Skip to content

Commit

Permalink
Use major number in comparison too
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Sep 5, 2024
1 parent 6893de2 commit 786ae42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from sys import version_info

if version_info.minor < 10:
if version_info < (3, 10):

# pylint: disable=import-error
from importlib_metadata import version # type: ignore
Expand Down

0 comments on commit 786ae42

Please sign in to comment.