Skip to content

Merge type hints to Python files from my typings folder? #1788

Open
@zarif98

Description

I have a bunch of stub files organized by my C# stub generator DLLs, which are organized by DLL namespace names. They are then called by my Python scripts using clr.addReference("name"), which is a DLL name called name.dll, and then I import the classes that I need to run my scripts like from "name" import "hello". MyPy and VsCode is able to recognize these stubs and is able to proper syntax highlighting. How would I go about merging those types with my Python code?

It seems like merge-pyi tool wants the stub to have the same name as the python script? Is there a way I can work around and load all of my stubs and match it with my Python scripts the same way VsCode and MyPy does it?

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