Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mypy v1 #31

Merged
merged 1 commit into from
Feb 20, 2023
Merged

Support mypy v1 #31

merged 1 commit into from
Feb 20, 2023

Conversation

toslunar
Copy link
Member

mypy 1.0 is released. There seems no big breaking change.

@@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version.major >= 2 or version.major == 0 and version.minor < 770 == version.major >= 2 or (version.major == 0 and version.minor < 770)

https://docs.python.org/3/reference/expressions.html#operator-precedence

@Hakuyume Hakuyume merged commit 7d88ecc into pfnet:main Feb 20, 2023
@toslunar toslunar deleted the mypy-v1 branch February 20, 2023 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants