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
Refactor Const type #3414
Merged
Merged
Refactor Const type #3414
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
cfbb1ea
Make explicit Literal classes for value type
sklam 15bb60b
Adopt new Literal* types.
sklam 3464b84
Rename RequireConstValue to RequireLiteralValue
sklam 1c1cb34
Adjust to use Literal types
sklam 969cdeb
Re-enable test
sklam c1d518f
Merge branch 'master' into enh/consttypeinfer
sklam 9b40950
Fixes due to merge master
sklam 819cb1c
Fix index unhashable error
sklam 2b59a9c
Make LiteralInt a subclass of Integer
sklam 18bef15
Make LiteralSlice a SliceType subclass
sklam ff5c865
Rename to literal_value.
sklam 1701964
Cleanup literal type
sklam 127cc48
Removing unneeded unliteral
sklam fb439eb
All pass
sklam dbb7b58
Clean up
sklam 5242e78
Using typing context to determine the getitem signature properly
sklam b3c0ab8
Clean up
sklam 2424c11
More clean up
sklam 0477614
Move around Literal utils
sklam d0e6f4b
Merge branch 'master' into enh/consttypeinfer
sklam c115321
Fixes to add string literal support to the unicode support
sklam fd96472
Make non-allocating casting from literal to unicode
sklam 42a07c8
Fix incorrect merge conflict resolution
sklam 650ff71
Add more literal tests
sklam 8cf41c1
Fix and test getattr on Literal types
sklam 6a6ba06
Remove slow test marker
sklam 3a1a786
Fix build
sklam a0c3835
Fixes according to comments
sklam 7ac6803
More code comments
sklam 4bc1125
Make typing template operating on numerical domains deterministic.
stuartarchibald ee5d1a8
Simple fixes from PR feedback.
stuartarchibald 6b9ccc5
Add literal use to template rejection string context.
stuartarchibald 7a98129
Add test for enumerate invalid typing
stuartarchibald 68fa78e
Fix up failing test on python 2.7
stuartarchibald File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
XXX
comment is for theuse_literal_type=False
. I'll open an issue about it.