Open jaanli opened 6 years ago
I agree. I see in the release notes for mxnet 12 RC0 that they're providing IDEs like pycharm with code completion hints. I wonder if this means someone has already generated stubs?
https://cwiki.apache.org/confluence/display/MXNET/MXNet+0.12.0+Release+Notes
ping @szha who worked on IDE integration
Yes, stubs are already generated, though it's not pyi. Let me know if you need pointers on the code generation.
One potential problem in type checking mxnet API is that some APIs may return more than one types, and the return type depends on the argument, due to legacy design.
Pinging @tdomhan , who was also hoping to see this feature.
Static type checking helps avoid bugs - would be great to have an mxnet stub here:
https://github.com/python/typeshed