typeshed-internal / stub_uploader

Scripts and actions to auto-upload typeshed stubs to PyPI
Apache License 2.0
21 stars 16 forks source link

Mark incomplete stubs as `partial` #93

Closed Avasam closed 1 year ago

Avasam commented 1 year ago

Incomplete stubs (ignore_missing_stub = true) should probably have partial\n in a py.typed marker. Ref: https://peps.python.org/pep-0561/#partial-stub-packages

I may have a use-case for arbitrarily tagging a stub as partial later with pywin32 (as in in many months from now). But for now autodetection on ignore_missing_stub = true would be enough for incomplete stubs.

hamdanal commented 12 months ago

I think this is not working as expected. The latest version of types-psycopg2 on PyPI is currently marked as partial but neither the wheel nor the sdist contain the py.typed marker file!