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

Version up of pytype and type error handling #106

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Koki-Kazaore
Copy link

@Koki-Kazaore Koki-Kazaore commented Dec 31, 2024

Overview

Version up of pytype and type error handling.

Issue

#57

pip install "flake8==6.1.0" && flake8 main*.py app/*.py
Copy link
Author

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
Copy link
Author

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

Copy link
Owner

@seratch seratch left a 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

.get("selected_option")
.get("value", "modal")
)
selected_option = extract_state_value(payload, "where-to-share-summary").get("selected_option") or {}
Copy link
Owner

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.

Copy link
Author

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.

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