Skip to content

Commit

Permalink
Support mypy > 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipuniverse committed Mar 6, 2023
1 parent 6598c23 commit d382d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loguru_mypy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def __init__(self, version: str) -> None:


def plugin(version: str) -> t.Type[LoguruPlugin]:
minor = int(version.split('.')[1].replace('+dev', ''))
if minor < 770:
version_info = tuple(int(v.replace('+dev', '')) for v in version.split('.'))
if version_info < (0, 770):
raise UnsupportedMypyVersion(version)
return LoguruPlugin

0 comments on commit d382d41

Please sign in to comment.