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 type hint errors in microgrid client #778

Conversation

daniel-zullo-frequenz
Copy link
Contributor

The mypy type hint errors in microgrid client were fixed in an attempt to address #774 which might no longer need to be addressed as the suggestion is just moving the type hint error from no-name-in-module where protobuf.* is imported to no-member where it is used. Anyway I kept these commits in case we want to merge them, otherwise we can just close this PR and #774.

The timeout argument is expected to be an int,
not a float.

Signed-off-by: Daniel Zullo <[email protected]>
The tool mypy is not able to infer the types of the gRPC calls,
so we need to cast them to the correct type in order to avoid
the errors.

Signed-off-by: Daniel Zullo <[email protected]>
@daniel-zullo-frequenz daniel-zullo-frequenz requested a review from a team as a code owner November 9, 2023 22:50
@github-actions github-actions bot added the part:microgrid Affects the interactions with the microgrid label Nov 9, 2023
@daniel-zullo-frequenz daniel-zullo-frequenz added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Nov 9, 2023
@llucax llucax added this to the v1.0.0-rc4 milestone Nov 10, 2023
@daniel-zullo-frequenz daniel-zullo-frequenz added this pull request to the merge queue Nov 10, 2023
Merged via the queue into frequenz-floss:v1.x.x with commit b49eb89 Nov 10, 2023
14 of 15 checks passed
@daniel-zullo-frequenz daniel-zullo-frequenz deleted the fix/type-hint-errors branch November 10, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd:skip-release-notes It is not necessary to update release notes for this PR part:microgrid Affects the interactions with the microgrid
Projects
Development

Successfully merging this pull request may close these issues.

2 participants