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

generate stubs for grpclib #12

Merged
merged 7 commits into from
Jul 23, 2023
Merged

generate stubs for grpclib #12

merged 7 commits into from
Jul 23, 2023

Conversation

xloem
Copy link
Contributor

@xloem xloem commented Jun 22, 2023

grpclib is a pure-python grpc library at https://github.com/vmagamedov/grpclib

EDIT: grpclib's 0.4.5 release addresses the minor bug i mentioned here and i've force-pushed a requirements.txt that references it.

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.

@xloem
Copy link
Contributor Author

xloem commented Jun 22, 2023

I've added the styling changes recommended by the restyled tests. I'm unsure why they are so extensive. My changes can be seen alone at EDIT: a536a82 . I also noticed requirements.txt is not used and instead updated the README. I'm using force pushes to keep the restyling changes, which I did not expect, separate.

@xloem xloem force-pushed the grpclib branch 4 times, most recently from e98e55b to 7ed2af3 Compare June 24, 2023 11:23
grpclib is a pure-python grpc library at https://github.com/vmagamedov/grpclib

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.
@ctrl-Felix
Copy link
Owner

Hi, thank you for the PR and sorry for my late answer. I am a bit busy lately but I will give it in the upcoming days!

@xloem
Copy link
Contributor Author

xloem commented Jul 8, 2023

I've updating the restyling changes so the tests pass again. Still not sure why the tests want them in areas I haven't touched. Haven't looked at it.

@ctrl-Felix ctrl-Felix merged commit 13b26af into ctrl-Felix:main Jul 23, 2023
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.

3 participants