You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using pybind11 v2.12.0 allows adding typing annotations for things. And it works great for most types but fails to properly parse the tuple special cases and so the stub is left without a type.
To Reproduce
I discovered while contributing to the pybind11 project.
I would recommend following there guide to building.
Once built move into the build/tests directory
And run the following command
InvincibleRMC
changed the title
[Stubgenc] Fails to generate stub for Empty Tuple
[Stubgenc] Fails to generate stub for Empty Tuple when using pybind11
Jun 17, 2024
InvincibleRMC
changed the title
[Stubgenc] Fails to generate stub for Empty Tuple when using pybind11
[Stubgenc] Fails to generate stub for Tuple special cases when using pybind11
Jun 17, 2024
Bug Report
Using pybind11 v2.12.0 allows adding typing annotations for things. And it works great for most types but fails to properly parse the tuple special cases and so the stub is left without a type.
To Reproduce
I discovered while contributing to the pybind11 project.
I would recommend following there guide to building.
Once built move into the build/tests directory
And run the following command
Expected Behavior
Generate the following.
Actual Behavior
Generated the following.
Your Environment
mypy 1.10.0 (compiled: yes)
Inside pybind11/build/tests
Python3.10
The text was updated successfully, but these errors were encountered: