Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.1k
Propagate type narrowing to nested functions#15133
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
30 commits Select commitHold shift + click to select a range
e4ecb91 Add test case
JukkaL05e3958 WIP debugging stuff
JukkaLf3c87ca Propagate narrowed types to nested functions in some cases
JukkaL01e044d Add test cases
JukkaLeecc877 Support for and with statements
JukkaL030457e Test more
JukkaL7968859 Fix nested functions
JukkaL7603f24 Add unit tests
JukkaLa81856a More testing
JukkaLc503b3c Check if a match statement assigns to a variable
JukkaLa601098 Support walrus expression
JukkaLfe05131 Fix self check and isort
JukkaL9d0b478 Add docstrings
JukkaL639a9a1 Minor tweak to test
JukkaL6dbf9f1 Refactoring and comment updates
JukkaLd463240 More refactoring
JukkaL77b67df Test narrowing multiple variables
JukkaL339ae64 Add another test case
JukkaL56c3f3a Don't leak frames + add assert to find frame leaks
JukkaL24faaa5 Test method
JukkaLecc2d34 Fix mypyc build
JukkaL67098aa Update mypy/literals.py
JukkaL25cafbd Fix tests when using compiled mypy
JukkaL40f3b53 Fix unused import
JukkaL4bfb5f1 Actually fix compiled mypy
JukkaL0c4dce4 Add more tests for reading narrowed variable after nested function
JukkaL4fe08c2 Fix dealing with member and index expressions after nested function
JukkaLdc6516e Merge branch 'master' into nested-func-optional
JukkaLc323e06 Fix test case
JukkaLc350905 More tests
JukkaLFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Actually fix compiled mypy
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit4bfb5f1bf3b8e6e9f8d15c84d985e6f6563ecefe
There are no files selected for viewing
3 changes: 1 addition & 2 deletionsmypy/literals.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
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.