-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support for type annotations? #15
Comments
Sounds good to me, either through pybind11 or |
Looks like making Not yet sure if we'd need to make those manually or somehow generate them though. I'm also wondering how they should be distributed? |
We could distribute any amount and type of files in the Maya module, the install would remain the same. So if |
I've used the Both methods would likely require some manual maintainence to be really useful. |
This PR has most of the work done: #16 It uses |
closed by #16 |
I started using type annotations quite a lot these past months and I've grown to love them.
Since none of the Maya APIs are type annotated, every function takes and returns
Any
. This is really frustrating to work with as you need to explicitly specify the type of a lot of variables when that should be inferred.I think it would be really nice if cmdc was fully type annotated and made that one of its primary goals.
I haven't looked into how to set that up much so I'm not sure if pybind supports this or if we'd need to also write
.pyi
stubs for that.The text was updated successfully, but these errors were encountered: