Closed HawkeyeCov closed 2 years ago
Problem: Status code "OUT_OF_RANGE" is defined in google.rpc but is not present in grpc-stubs.
Solution: Add + OUT_OF_RANGE = ... to grpc-stubs/__init__.pyi
+ OUT_OF_RANGE = ...
grpc-stubs/__init__.pyi
Mypy fails with no attribute "OUT_OF_RANGE":
no attribute "OUT_OF_RANGE"
Thank you! Just published 1.24.11.
Description of issue
Problem: Status code "OUT_OF_RANGE" is defined in google.rpc but is not present in grpc-stubs.
Solution: Add
+ OUT_OF_RANGE = ...
togrpc-stubs/__init__.pyi
Minimum Reproducible Example
Mypy fails with
no attribute "OUT_OF_RANGE"
:example.py
#check with mypy example.py import grpc status1 = grpc.StatusCode.CANCELLED # Okay status2 = grpc.StatusCode.OUT_OF_RANGE # Error!