-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(types): add support for typing.Literal type #5192
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
Merged
Merged
Changes from 69 commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
d872367
typevar prototype
InvincibleRMC 1012f10
style: pre-commit fixes
pre-commit-ci[bot] fbd168a
change to NameT
InvincibleRMC 34bf41b
style: pre-commit fixes
pre-commit-ci[bot] 63acf62
make string const
InvincibleRMC 38fd357
add missing closing bracket
InvincibleRMC 614d03e
style: pre-commit fixes
pre-commit-ci[bot] d354512
clean up handle_type_name
InvincibleRMC 7b8c860
Merge branch 'typevars' of github.com:InvincibleRMC/pybind11 into typ…
InvincibleRMC a198152
style: pre-commit fixes
pre-commit-ci[bot] ee00f70
add back missing <
InvincibleRMC e19ee22
style: pre-commit fixes
pre-commit-ci[bot] 98f836e
add back NameT
InvincibleRMC e1dc7a5
try fixed_string
InvincibleRMC 14ea23d
style: pre-commit fixes
pre-commit-ci[bot] 5e5066c
std::basic_fixed_string
InvincibleRMC 534dd65
test c++20
InvincibleRMC 651227f
style: pre-commit fixes
pre-commit-ci[bot] 0f8864c
cleanup
InvincibleRMC b549902
fix object to typevar conversion
InvincibleRMC a858638
style: pre-commit fixes
pre-commit-ci[bot] 0380dc1
And CPP20 checks
InvincibleRMC 3cc5a14
style: pre-commit fixes
pre-commit-ci[bot] 34ecc43
add missing cpp20++ check
InvincibleRMC dd8d648
style: pre-commit fixes
pre-commit-ci[bot] e98b6a0
Add C++20 check to python
InvincibleRMC 4122505
Fix python if {
InvincibleRMC c66ebd7
style: pre-commit fixes
pre-commit-ci[bot] 9954c18
update test name
InvincibleRMC 7e07f5e
Merge
InvincibleRMC bd954e6
style: pre-commit fixes
pre-commit-ci[bot] 8675c5c
remove call on cpp_std
InvincibleRMC 9cd1b16
make field const
InvincibleRMC 4e3821d
test nontype_template
InvincibleRMC dd3d0cc
update feature check
InvincibleRMC 0a34ddb
update name of guard
InvincibleRMC c572871
fix try except in test
InvincibleRMC 676e3bd
fix pre commit
InvincibleRMC 5dd1d3b
remove extra semi colon
InvincibleRMC 98c115d
except AttributeError
InvincibleRMC 1dab40f
fix try except in test
InvincibleRMC 39516fd
remove const
InvincibleRMC 237136a
Clean up tests
InvincibleRMC d13e3d5
style: pre-commit fixes
pre-commit-ci[bot] 10739e6
start string literal
InvincibleRMC 6dae701
Merge branch 'typevars' into Literal-type
InvincibleRMC 311fa83
start int literal
InvincibleRMC 7c3c09e
func declare
InvincibleRMC 905638a
commit clean
InvincibleRMC a6c5676
use contextlib.suppres
InvincibleRMC 6266705
Merge branch 'typevars' into Literal-type
InvincibleRMC c045695
resolve stash
InvincibleRMC 519e32b
more literal type
InvincibleRMC ba3259b
fix annotation name
InvincibleRMC f087d74
stash
InvincibleRMC 2542b79
Merge remote-tracking branch 'origin/master' into typevars
InvincibleRMC ca868f8
request changes
InvincibleRMC 0789290
Merge branch 'master' into typevars
InvincibleRMC 32fde8e
lint
InvincibleRMC 318ec6d
Add comments
InvincibleRMC e9f7889
style: pre-commit fixes
pre-commit-ci[bot] 648c5a0
Add support for unions and optionals to be compatible with object
InvincibleRMC c452d2f
lint
InvincibleRMC 7b83557
remove comment
InvincibleRMC 2351814
Merge remote-tracking branch 'origin/master' into Literal-type
InvincibleRMC 652197e
Merge branch 'typevars' into Literal-type
InvincibleRMC 4bd4351
Create Literal Type implementation
InvincibleRMC 30c790e
clean up
InvincibleRMC b65b945
Update comment
InvincibleRMC 00ba9fa
remove incorrect comment
InvincibleRMC 2cb5b03
rerun CI
InvincibleRMC 3d20c57
rerun CI
InvincibleRMC 224335d
Merge remote-tracking branch 'origin/master' into Literal-type
InvincibleRMC 0223244
fix extra line
InvincibleRMC 0f302d9
lint
InvincibleRMC befcb78
move if defined block
InvincibleRMC dcf8e49
style: pre-commit fixes
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
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.
Could this be simplified?
But why is this noteworthy here? (IOW, where/why does it matter?)
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.
Oops this comment was left from a previous implementation. It has now been removed.