mypy-protobuf
mypy-protobuf copied to clipboard
open source tools to generate mypy stubs from protobufs
It seems mypy-protobuf forgets its a map/repeated and just generates the type directly instead of just the container. Note I tested with legacy extensions but I'm relatively sure from code...
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.3 to 8.3.4. Release notes Sourced from pytest's releases. 8.3.4 pytest 8.3.4 (2024-12-01) Bug fixes #12592: Fixed KeyError{.interpreted-text role="class"} crash when using --import-mode=importlib in a directory layout...
I'm wondering if anyone has guidance on how to flag passing `None` to `required` protobuf2 fields? ``` syntax = "proto2"; message MyMessage { required string my_field = 1; } ```...
Instead of ```python import a.b.c_pb2 some use() -> a.b.c_pb2.Something ``` do ```python import a.b.c_pb2 as a_dot_b_dot_c_pb2 some use() -> a_dot_b_dot_c_pb2.Something ``` as it's done in protoc generator
When using `--mypy_grpc_out=readable_stubs:.` async and sync imports are duplicated and type arguments clash: ```python from grpc import ( Channel, Server, ServicerContext, UnaryStreamMultiCallable, UnaryUnaryMultiCallable, ) from grpc.aio import ( Channel, Server,...