-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix daemon crash on malformed NamedTuple (#14119) #1
Commits on Nov 18, 2022
-
Fix daemon crash on malformed NamedTuple (#14119)
Fixes #14098 Having invalid statements in a NamedTuple is almost like a syntax error, we can remove them after giving an error (without further analysis). This PR does almost exactly the same as #13963 did for TypedDicts. Co-authored-by: Shantanu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1d6a5b1 - Browse repository at this point
Copy the full SHA 1d6a5b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a206096 - Browse repository at this point
Copy the full SHA a206096View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cc4a7d - Browse repository at this point
Copy the full SHA 1cc4a7dView commit details -
Correctly handle Enum name on Python 3.11 (#14133)
Fixes #12483 Fixes python/typeshed#7564 Ref #12841 The fix is straightforward. I can't use a unit test for this because there are some builtins fixtures that don't have tuple, so I can't do version check.
Configuration menu - View commit details
-
Copy full SHA for 05a3f7d - Browse repository at this point
Copy the full SHA 05a3f7dView commit details -
Update code example in "Declaring decorators" (#14131)
- Added missing cast import - Changed revealed type Co-authored-by: Shantanu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a2477ff - Browse repository at this point
Copy the full SHA a2477ffView commit details
Commits on Nov 19, 2022
-
Fix type query for recursive aliases (#14136)
See #14130 for context. Btw it looks like these `Any` reports are quite broken in general. Some issues I found: * Many types are reported twice (even non-recursive) * Explicit `Any` in alias r.h.s are not counted (because of reckless `res = make_any_non_explicit(res)` in semanal.py) * For generic aliases we count their r.h.s. as containing `Any` from omitted generics I tried to fix these things, but it is not trivial, so maybe we can do it later in a separate PR.
Configuration menu - View commit details
-
Copy full SHA for 6cd8e00 - Browse repository at this point
Copy the full SHA 6cd8e00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56e9396 - Browse repository at this point
Copy the full SHA 56e9396View commit details -
Configuration menu - View commit details
-
Copy full SHA for e814c47 - Browse repository at this point
Copy the full SHA e814c47View commit details -
Make is_recursive and has_recursive_types() more consistent (#14147)
While working on another PR I noticed that current behavior of `has_recursive_types()` is inconsistent, it returns `False` is there is a recursive type nested as an argument to a generic non-recursive alias. I wasn't able to find any situation where this actually matters, but I think it is better if this function behaves consistently.
Configuration menu - View commit details
-
Copy full SHA for f8d71f1 - Browse repository at this point
Copy the full SHA f8d71f1View commit details
Commits on Nov 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c660354 - Browse repository at this point
Copy the full SHA c660354View commit details