Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Incorrect Use of Typing #20

Closed
gandalfr-KY opened this issue Mar 21, 2024 · 2 comments
Closed

Incorrect Use of Typing #20

gandalfr-KY opened this issue Mar 21, 2024 · 2 comments

Comments

@gandalfr-KY
Copy link
Contributor

gandalfr-KY commented Mar 21, 2024

Hello!

I attempted to create an API using Sphinx based on the .pyi files generated by nanobind-stubgen, but the build was interrupted due to an error. Upon inspecting the .pyi files produced by this project, it seems that the following import statement is incorrect. I referred to the official documentation and found that there appears to be no module named Typing. It might be a typo for Type.

from typing import Any, Optional, overload, Typing, Sequence, Iterable, Union, Callable
                                            ^^^^^^
@gandalfr-KY gandalfr-KY changed the title Incorrect Use of "Typing" Incorrect Use of Typing Mar 21, 2024
@cansik
Copy link
Owner

cansik commented Mar 21, 2024

Thanks for the pr. Fyi stubgen capabilities are currently being implemented into nanobind directly: wjakob/nanobind#420

@gandalfr-KY
Copy link
Contributor Author

Thank you for the information!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants