Skip to content
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

feat(types): Adds support for Typing.Callable Special Case #5202

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

InvincibleRMC
Copy link
Contributor

@InvincibleRMC InvincibleRMC commented Jun 26, 2024

Description

Adds support for special case defined by pep 484.

Suggested changelog entry:

  Add support for ``Typing.Callable[..., T]``

@rwgk
Copy link
Collaborator

rwgk commented Jun 26, 2024

@InvincibleRMC If you have more of these, is there a chance that you could combine them, to reduce the churn here?

I'm also curious: Why/how do you decide what to add? Is this feeding into something specific?

@InvincibleRMC
Copy link
Contributor Author

I don't have anymore implementations that currently work. I've been trying to get Protocol/TypeDict/Generic working but, no luck so far. For choosing what to add I have mostly just been going through Python's typing api and attempting to add them into typing.h. I don't have any specific need right now but, in the future I'm hoping to improve https://github.com/ros2/rclpy pybinded types.

@henryiii henryiii merged commit 4bd538a into pybind:master Jun 26, 2024
84 checks passed
@henryiii henryiii changed the title feat(types) Adds support for Typing.Callable Special Case feat(types): Adds support for Typing.Callable Special Case Jun 26, 2024
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Jun 26, 2024
@InvincibleRMC InvincibleRMC deleted the callable-ellipse branch June 26, 2024 21:18
@henryiii henryiii added needs backport and removed needs changelog Possibly needs a changelog entry labels Jun 26, 2024
henryiii pushed a commit that referenced this pull request Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants