Skip to content

[question] How to add type stub file (.pyi) to module only project? #8709

@tamuhey

Description

@tamuhey

I want to add a type stub file (.pyi) to my module-only project. The projects consists as follows:

foo.py
foo.pyi
setup.py

I know foo.py should be added to py_modules arguments in setup function.
But I don't know where foo.pyi should be added.

The repository I'm trying to handle is https://github.com/studio-ousia/mojimoji

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions