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

Typehints for python grpc-methods #234

Merged

Conversation

ErikDeSmedt
Copy link
Collaborator

I added typehints using the mypy-protobuf package.

This requries that mypy-protobuf python package is installed.

I created a requirements-dev.txt-file and added it to the docker-container. The bindings can now be regenerated as follows.

Do make docker-shell.

Inside the newly opened shell you can enter

make libs/gl-client-py/Makefile pygrpc

and

make libs/gl-testing/Makefile testgrpc

I added typehints using the mypy-protobuf package.

This requries that `mypy-protobuf` python package is installed.

I created a `requirements-dev.txt`-file and added it to the
docker-container. The bindings can now be regenerated as follows.

Do `make docker-shell`.

Inside the newly opened shell you can enter

```
make libs/gl-client-py/Makefile pygrpc
```

and

```
make libs/gl-testing/Makefile testgrpc
```
@ErikDeSmedt ErikDeSmedt force-pushed the 2023_08_17/python_typehints_using_mypy branch from 01ae338 to dfdf626 Compare August 17, 2023 12:38
@ErikDeSmedt ErikDeSmedt changed the title Typehints for pythong grpc-methods Typehints for python grpc-methods Aug 17, 2023
Copy link
Collaborator

@cdecker cdecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably want to move the dependency list into libs/gl-testing/pyproject.toml or as dev-dependencies in libs/gl-client-py/pyproject.toml. Otherwise excellent change, thanks 👍

@cdecker cdecker merged commit 169ec84 into Blockstream:main Aug 17, 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.

2 participants