Skip to content
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

Type hinting classes outside standard library #13

Open
bennyrowland opened this issue Dec 1, 2021 · 0 comments
Open

Type hinting classes outside standard library #13

bennyrowland opened this issue Dec 1, 2021 · 0 comments

Comments

@bennyrowland
Copy link

Thanks for sharing this fantastic project. I am just starting to work on calling .NET dlls from Python and hoping that PyStubbler will make things substantially easier. I am just trying to wrap my head around the type hinting part of the stubs. I see that the class names are given everywhere, but they are not namespaced, so PyCharm / mypy can't resolve the actual types. Auto-completion works, mostly, but not the type hinting. Am I doing something wrong or is this just how it works? If so, is there any plan to further develop this aspect of the project? If not, maybe it would be better to type them as typing.Any so that we can at least run mypy etc. and just have it not type check those classes?

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

No branches or pull requests

1 participant