-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Comparing changes
Open a pull request
base repository: python/mypy
base: v1.7.0
head repository: python/mypy
compare: v1.7.1
- 10 commits
- 21 files changed
- 3 contributors
Commits on Nov 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fe79a59 - Browse repository at this point
Copy the full SHA fe79a59View commit details
Commits on Nov 15, 2023
-
Fix crash on Callable self in __call__ (#16453)
Fixes #16450 The fix is a bit ad-hoc, but OTOH there is nothing meaningful we can infer in such situation, so it is probably OK.
Configuration menu - View commit details
-
Copy full SHA for f862d3e - Browse repository at this point
Copy the full SHA f862d3eView commit details -
Special-case unions in polymorphic inference (#16461)
Fixes #16451 This special-casing is unfortunate, but this is the best I came up so far.
Configuration menu - View commit details
-
Copy full SHA for 4b5b316 - Browse repository at this point
Copy the full SHA 4b5b316View commit details -
Exclude private attributes from override checks (#16464)
Fixes #9910 Fixes #16452 We already exclude private names from override type compatibility checks etc., but it looks like some override checks were still performed, we need to skip them, since private name is actually a different name in subclass. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 88791ca - Browse repository at this point
Copy the full SHA 88791caView commit details -
Fix missing meet case exposed by len narrowing (#16470)
Fixes #16468 The fix is straightforward. Btw when fixing this I noticed that we disregard type arguments when narrowing, for example: ```python x: Sequence[int] if isinstance(x, tuple): reveal_type(x) # tuple[Any, ...], but should be `tuple[int, ...]` ``` I guess fixing this may be tricky, and it is quite old behavior.
Configuration menu - View commit details
-
Copy full SHA for 5c354c4 - Browse repository at this point
Copy the full SHA 5c354c4View commit details -
Ignore position if imprecise arguments are matched by name (#16471)
Fixes #16405 Fixes #16412 Imprecise argument kinds inference was added a while ago to support various edge cases with `ParamSpec`. This feature required mapping actual kinds to formal kinds, which is in general undecidable. At that time we decided to not add much special-casing, and wait for some real use-cases. So far there are two relevant issues, and it looks like both of them can be fixed with simple special-casing: ignore argument positions in subtyping if arguments can be matched by name. This adds minor unsafety, and generally doesn't look bad, so I think we should go ahead with it. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6c8e0cc - Browse repository at this point
Copy the full SHA 6c8e0ccView commit details -
Fix crash on strict-equality with recursive types (#16483)
Fixes #16473 Potentially we can turn this helper function into a proper visitor, but I don't think it is worth it as of right now. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 661adb7 - Browse repository at this point
Copy the full SHA 661adb7View commit details
Commits on Nov 22, 2023
-
Fix polymorphic application for callback protocols (#16514)
Fixes #16512 The problems were caused if same callback protocol appeared multiple times in a signature. Previous logic confused this with a recursive callback protocol.
Configuration menu - View commit details
-
Copy full SHA for e6399d1 - Browse repository at this point
Copy the full SHA e6399d1View commit details -
[mypyc] Fix regression with nested functions (#16484)
Fixes #16480 Fix is straightforward, but also suspicious, since I am not sure how it ever worked without this.
Configuration menu - View commit details
-
Copy full SHA for c10e173 - Browse repository at this point
Copy the full SHA c10e173View commit details
Commits on Nov 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6b3c418 - Browse repository at this point
Copy the full SHA 6b3c418View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.7.0...v1.7.1