Skip to content

Type hinting classes outside standard library #13

@bennyrowland

Description

@bennyrowland

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions