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

protobuf: Prevent namespace package google from having a py.typed file at root #11261

Closed
wants to merge 1 commit into from

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jan 8, 2024

Short-term fix for #11254 (see discussion in the issue)

Long story short, assuming I got everything right: Spec says that namespace stubs-only packages should either not have a py.typed marker (which is already do for complete stubs) or that it should be in the submodules, not at root (we add a py.typed file at root for partial stubs).

mypy gets tripped up by the presence of the file. And it is not mypy's fault as it's within spec. This could be improved in stub_uploader. But the short term fix is simply to not generate a partial py.typed marker file for this stub at all.

…le at root

Short-term fix for #11254 (see discussion in the issue)
@srittau
Copy link
Collaborator

srittau commented Jan 8, 2024

Let's hold off for now as stub_uploader should be fairly easy to fix.

@Avasam
Copy link
Collaborator Author

Avasam commented Jan 8, 2024

Good to hear.
(for reference: typeshed-internal/stub_uploader#119 )

@srittau
Copy link
Collaborator

srittau commented Jan 14, 2024

typeshed-internal/stub_uploader#122 should fix this issue.

@Avasam Avasam closed this Jan 14, 2024
@Avasam
Copy link
Collaborator Author

Avasam commented Jan 14, 2024

@srittau Since you quickly worked on a proper solution, I'll just close this.

@Avasam Avasam deleted the Avasam-patch-1 branch February 29, 2024 00:34
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.

2 participants