-
-
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
More helpful type guards #14238
Merged
Merged
More helpful type guards #14238
Commits on Dec 3, 2022
-
The specification requires positional arguments
> Type checkers should assume that type narrowing should be applied to the expression that is passed as the first positional argument to a user-defined type guard. [...] > > If a type guard function is implemented as an instance method or class method, the first positional argument maps to the second parameter (after “self” or “cls”).
Configuration menu - View commit details
-
Copy full SHA for a29a6ec - Browse repository at this point
Copy the full SHA a29a6ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dda329 - Browse repository at this point
Copy the full SHA 3dda329View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10c7e3f - Browse repository at this point
Copy the full SHA 10c7e3fView commit details
Commits on Dec 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3ea4baf - Browse repository at this point
Copy the full SHA 3ea4bafView commit details
Commits on Dec 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9c9a791 - Browse repository at this point
Copy the full SHA 9c9a791View commit details
Commits on Dec 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 43adc46 - Browse repository at this point
Copy the full SHA 43adc46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58af039 - Browse repository at this point
Copy the full SHA 58af039View commit details
Commits on Dec 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c6f55d1 - Browse repository at this point
Copy the full SHA c6f55d1View commit details
Commits on Jan 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e7265c4 - Browse repository at this point
Copy the full SHA e7265c4View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.