KEMBAR78
Convert V to ValueType by nipunn1313 · Pull Request #306 · nipunn1313/mypy-protobuf · GitHub
Skip to content

Conversation

@nipunn1313
Copy link
Owner

See protocolbuffers/protobuf#8182 which
will make it into protobuf 3.20.0

Have to use a V = Union[ValueType] hax, because
V = ValueType is interpreted as a value rather than alias
V: TypeAlias = ValueType appears buggy within nested scopes.

Fixes #169

See protocolbuffers/protobuf#8182 which
will make it into protobuf 3.20.0

Have to use a `V = Union[ValueType]` hax, because
`V = ValueType` is interpreted as a value rather than alias
`V: TypeAlias = ValueType` appears buggy within nested scopes.

Fixes #169
@nipunn1313 nipunn1313 merged commit cd9d1f6 into main Oct 30, 2021
@nipunn1313 nipunn1313 deleted the ValueType branch October 31, 2021 06:36
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.

Upstream V = int to protoc's EnumTypeWrapper runtime

1 participant