-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: Option for arg/return type hints and correct typing for std::filesystem::path #5450
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 9 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
2b8de82
Added arg/return type handling.
timohl 7ba983b
Added support for nested arg/return type in py::typing::List
timohl b4008bb
Added support for arg/return type in stl/filesystem
timohl bc145b3
Added tests for arg/return type in stl/filesystem and py::typing::List
timohl a468d37
Added arg/return name to more py::typing classes
timohl f0b60cb
Added arg/return type to Callable[...]
timohl 7f0f938
Added tests for typing container classes (also nested)
timohl e8d94ea
Changed typing classes to avoid using C++14 auto return type deduction.
timohl 9042844
Fixed clang-tidy errors.
timohl c7bcb57
Changed Enable to SFINAE
timohl 251aeb7
Added test for Tuple[T, ...]
timohl 413d685
Added RealNumber with custom caster for testing typing classes.
timohl 66e6644
Added tests for Set, Iterable, Iterator, Union, and Optional
timohl 3199428
Merge branch 'pybind:master' into arg_return_type_hints
timohl 2c17048
Added tests for Callable
timohl 9eb7af9
Fixed Callable with ellipsis test
timohl 9ad445d
Changed TypeGuard/TypeIs to use return type (being the narrower type)…
timohl c9dab34
Added test for use of fallback type name with stl vector
timohl 28cfd9e
Merge branch 'arg_return_type_hints' of github.com:timohl/pybind11 in…
timohl eb8e5d1
Updated documentation.
timohl 3c53525
Fixed unnecessary constructor call in test.
timohl a45f1bd
Fixed reference counting in example type caster.
timohl 5ea6b69
Fixed clang-tidy issues.
timohl 34fe273
Fix for clang-tidy
timohl e704703
Updated cast method to use pybind11 API rather than Python C API in c…
timohl fa0a7b1
Updated load to use pybind11 API rather than Python C API in custom c…
timohl 1fe101a
Changed test of arg/return name to use pybind11 API instead of Python…
timohl 562153d
Updated code in adcanced/cast example and improved documentation text
timohl eea98b2
Fixed references in custom type caster docs
timohl acb58b3
Fixed wrong logical and operator in test
timohl bab038d
Fixed wrong logical operator in doc example
timohl 3a78cb4
Added comment to test about `float` vs `float | int`
timohl 6ea4704
Updated std::filesystem::path docs in cast/overview section
timohl aa21ab5
Remove one stray dot.
rwgk 6b332d4
Merge branch 'master' into arg_return_type_hints
rwgk 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
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.
Uh oh!
There was an error while loading. Please reload this page.