-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[BUG]: Invalid typing for std::array
?
#3912
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
Labels
Comments
@sizmailov for your attention please |
Oddly enough, this is expected and tested behavior: Line 42 in 75007dd
|
@henryiii Any idea how we can support typing extensions? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Required prerequisites
Problem description
When returning a
std::array
, the typing information is invalid, e.g.List[str[2]]
for the code below. This causes tool such as mypy's stubgen or pybind11-stubgen to produce invalid stubs.I guess it would be valid to generate
List[str]
in this case since Python does not have information about the size anyway?Reproducible example code
The text was updated successfully, but these errors were encountered: