Skip to content
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

fix parse errors with methodless stubs by adding a "pass" statement #176

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

xloem
Copy link
Contributor

@xloem xloem commented Jun 22, 2023

Fixes a situation I encountered where an init function had an empty body.

xloem added a commit to xloem/cosmospy-protobuf that referenced this pull request Jun 22, 2023
grpclib is a pure-python grpc library at https://github.com/vmagamedov/grpclib

the added dependency references pull 176 at vmagamedov/grpclib#176 ,
which addresses some empty constructors that appear generated when used with cosmospy_protobuf.

because grpcio generates stubs into [name]_pb2_grpc.py, and grpclib generates stubs into [name]_grpc.py, both stubs can coexist peacefully in the same package, although it would
be clearer to rename the files based on the backend they assume is present.
@vmagamedov vmagamedov merged commit 519d4c6 into vmagamedov:master Jun 22, 2023
@vmagamedov
Copy link
Owner

Thanks for the fix!

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