diff --git a/src/flake8_requirements/checker.py b/src/flake8_requirements/checker.py index 9dd5dc2..19884ba 100644 --- a/src/flake8_requirements/checker.py +++ b/src/flake8_requirements/checker.py @@ -18,7 +18,7 @@ from .modules import STDLIB_PY3 # NOTE: Changing this number will alter package version as well. -__version__ = "1.7.0" +__version__ = "1.7.1" __license__ = "MIT" LOG = getLogger('flake8.plugin.requirements') @@ -353,7 +353,7 @@ def add_options(cls, manager): ) manager.add_option( "--requirements-max-depth", - type="int", + type=int if flake8.__version__ >= '3.8.0' else 'int', default=1, help=( "Max depth to resolve recursive requirements. Defaults to 1 "