Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support namespace packages without __init__.pyi files in typeshed #33

Merged
merged 2 commits into from
Oct 4, 2021

Conversation

nipunn1313
Copy link
Contributor

Per python/peps#2083 and microsoft/pyright#2113 - looking to eliminate the __init__.pyi file from google/ in typeshed - since it's a namespace package.

This adds support to the stub_uploader - including unit tests.
I also confirmed that it builds protobuf validly via running

PYTHONPATH=. python3 scripts/build_wheel.py ../typeshed protobuf 3.17.5

nipunn1313 added a commit to nipunn1313/typeshed that referenced this pull request Oct 3, 2021
Since google is a namespace package, it won't have an init.
Depends on typeshed-internal/stub_uploader#33
Added a test to confirm it works. Also manually
tested against protobuf package in typeshed.
@JelleZijlstra JelleZijlstra merged commit 54338ac into typeshed-internal:main Oct 4, 2021
JelleZijlstra pushed a commit to python/typeshed that referenced this pull request Mar 20, 2022
Since google is a namespace package, it won't have an init.
Depends on typeshed-internal/stub_uploader#33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants