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
chore: fix mypy static type checking issues #12086
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the DCO check after the last commit. |
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the Python Format Check after the last commit. |
11e5526
to
8add81c
Compare
@@ -84,7 +75,7 @@ def benchmark_grpc_request( | |||
output_file: str, | |||
num_reqs: int, | |||
address: str, | |||
import_path: str = None, | |||
import_path: str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out, that the import path is not actually optional, but always given by the caller.
I.e. the logic to "intelligently" determine some protobuf path can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
8add81c
to
eae44ba
Compare
* chore: reduce mypy exclusion list Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: import_path is always given and must not be optional Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: exclude mypy warning Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: fix mypy type issue Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: fix mypy type issue Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: fix mypy type issue Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: fix mypy type issue Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
* chore: reduce mypy exclusion list Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: import_path is always given and must not be optional Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: exclude mypy warning Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: fix mypy type issue Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: fix mypy type issue Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: fix mypy type issue Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com> * chore: fix mypy type issue Signed-off-by: Fritz Lehnert <Fritz.Lehnert@tngtech.com>
Summary
ℹ️ Commit wise review suggested.
Further cleanup for mypy introduction.
Follow up on:
Test Plan
Install mypy in a virtualenv and execute it via
Before:
After: