-
Notifications
You must be signed in to change notification settings - Fork 176
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
Version up of pytype and type error handling #106
base: main
Are you sure you want to change the base?
Conversation
pip install "flake8==6.1.0" && flake8 main*.py app/*.py |
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.
Upgrade to support validate.sh
pip install "pytype==2024.10.11" boto3 && pytype *.py |
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.
Upgrade to support validate.sh
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.
sorry for my late response here
app/bolt_listeners.py
Outdated
.get("selected_option") | ||
.get("value", "modal") | ||
) | ||
selected_option = extract_state_value(payload, "where-to-share-summary").get("selected_option") or {} |
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.
I do understand this change may be necessary to make pytype happy. However, the selected_option must exist in this scenario, so I don't want to have fallback like or {}
here. Instead, replacing get("selected_option")
with ["selected_option"]
could make more sense.
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.
Thank you for your review. I have corrected the issues you mentioned and made improvements to other parts as well.
3778de9
to
d01b060
Compare
Overview
Version up of pytype and type error handling.
Issue
#57