Using MyPy with chirpstack_api

Hello,
I’m using the chirpstack_api library in a Python project.
I was wondering if there are any chirpstack_api stub packages in order to make Mypy happy ?
At the moment i have this kind of messages :

error: Skipping analyzing "chirpstack_api.as_pb.external": module is installed, but missing library stubs or py.typed marker

error: Skipping analyzing "chirpstack_api.as_pb.external.api.device_pb2_grpc": module is installed, but missing library stubs or py.typed marker

Thanks for your help.

I was wondering if there are any chirpstack_api stub packages in order to make Mypy happy ?

At this moment this is not provided.

1 Like

Fyi, it should be very simple to generate mypy typings along with the protobuf generated code: Pylance type checking rejects gRPC protobuf generated types · Issue #351 · microsoft/pylance-release · GitHub

1 Like