Skip to content

Stubs for zstd #9483

@victorbnl

Description

@victorbnl

zstd is an extension library written in C for Python. I'd like to add stub files for it. However, I don't know whether I should make a pull request on their repo or add them to typeshed.

I'd like to make a PR on their repo, the issue is I don't know how to provide stub files along with the module itself. I tried to add the stub files in the src/ directory, both as zstd.pyi and __init__.pyi, then I tried to add these files to the package_data section in the setup.py file. Nonetheless, the stubs seem to get ignored in all cases; testing on a project I have which depends on zstd, I keep getting:

error: Cannot find implementation or library stub for module named "zstd"  [import]

Is it even possible to ship those .pyi directly with the package? If so, how can I do so? Or should I just add them to typeshed anyway? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: requestOUTDATED! Request to add stubs for a new package to typeshed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions