Skip to content

Commit

Permalink
Support mypy v1 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
toslunar authored Feb 20, 2023
1 parent 75619d9 commit 7d88ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysen/ext/mypy_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ class MypyTarget:
@functools.lru_cache(1)
def _check_mypy_version() -> None:
version = get_version("mypy")
if version.major != 0 or version.minor < 770:
if version.major >= 2 or version.major == 0 and version.minor < 770:
raise IncompatibleVersionError(
f"pysen only supports mypy version >=0.770, <1. "
f"pysen only supports mypy version >=0.770, <2. "
f"version {version} is not supported."
)

Expand Down

0 comments on commit 7d88ecc

Please sign in to comment.