Visitar URL original
Use relax_strict_optional_primitives on protobuf generated code by nipunn1313 · Pull Request #7038 · python/typeshed · GitHub
The Wayback Machine - https://web.archive.org/web/20250620054728/https://github.com/python/typeshed/pull/7038
Skip to content

Use relax_strict_optional_primitives on protobuf generated code #7038

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

Merged
merged 1 commit into from
Jan 29, 2022

Conversation

nipunn1313
Copy link
Contributor

Per the suggestion in nipunn1313/mypy-protobuf#344
This generates more permissive constructors (which protobuf itself actually
accepts).

Philosophically, I think it makes sense for the generated code hosted on
typeshed to be most permissive, while the generated code of individual
projects can make individual decisions (defaulting to less permissive).

Per the suggestion in nipunn1313/mypy-protobuf#344
This generates more permissive constructors (which protobuf itself actually
accepts).

Philosophically, I think it makes sense for the generated code hosted on
typeshed to be most permissive, while the generated code of individual
projects can make individual decisions (defaulting to less permissive).
@JelleZijlstra JelleZijlstra merged commit 470ea31 into python:master Jan 29, 2022
@nipunn1313 nipunn1313 deleted the relax_strict_optional branch February 7, 2022 01:42
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