-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 narrowing literals and enums using the in operator in combination with list, set, and tuple expressions. #17044
base: master
Are you sure you want to change the base?
Commits on Mar 17, 2024
-
Support narrowing literals and enums using the in operator in combina…
…tion with tuple expressions. The general idea is to transform expressions like (x is None) and (x in (1, 2)) and (x not in (3, 4)) into (x is None) and (x == 1 or x == 2) and (x != 3 and x != 4) This transformation circumvents the need to extend the (already complicated) narrowing logic further.
Configuration menu - View commit details
-
Copy full SHA for e83679f - Browse repository at this point
Copy the full SHA e83679fView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for a0d1db3 - Browse repository at this point
Copy the full SHA a0d1db3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bff3c2 - Browse repository at this point
Copy the full SHA 2bff3c2View commit details -
Merge branch 'feature/narrow_using_in' of https://github.com/tyralla/…
…mypy into feature/narrow_using_in
Configuration menu - View commit details
-
Copy full SHA for 5e8a525 - Browse repository at this point
Copy the full SHA 5e8a525View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fa954a - Browse repository at this point
Copy the full SHA 2fa954aView commit details -
Configuration menu - View commit details
-
Copy full SHA for db7b969 - Browse repository at this point
Copy the full SHA db7b969View commit details
Commits on Mar 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 23bfd4e - Browse repository at this point
Copy the full SHA 23bfd4eView commit details
Commits on Mar 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 207c56e - Browse repository at this point
Copy the full SHA 207c56eView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for dea2614 - Browse repository at this point
Copy the full SHA dea2614View commit details -
Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks"
This reverts commit dea2614.
Configuration menu - View commit details
-
Copy full SHA for 214f51a - Browse repository at this point
Copy the full SHA 214f51aView commit details -
Revert "replace the critical
in
comparisons for testing"This reverts commit 207c56e.
Configuration menu - View commit details
-
Copy full SHA for a495fee - Browse repository at this point
Copy the full SHA a495feeView commit details
Commits on Mar 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8785fe9 - Browse repository at this point
Copy the full SHA 8785fe9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6af40ae - Browse repository at this point
Copy the full SHA 6af40aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e52eb25 - Browse repository at this point
Copy the full SHA e52eb25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 763c265 - Browse repository at this point
Copy the full SHA 763c265View commit details
Commits on Oct 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 44d71eb - Browse repository at this point
Copy the full SHA 44d71ebView commit details -
Merge branch 'master' into feature/narrow_using_in
# Conflicts: # test-data/unit/check-narrowing.test
Configuration menu - View commit details
-
Copy full SHA for bd145d1 - Browse repository at this point
Copy the full SHA bd145d1View commit details
Commits on Oct 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a04126d - Browse repository at this point
Copy the full SHA a04126dView commit details