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

Resolve unsoundness caught by pytype --strict-none-binding. #3250

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

hnbdgr379
Copy link
Contributor

@hnbdgr379 hnbdgr379 commented Dec 20, 2024

Resolve unsoundness caught by pytype --strict-none-binding.

In short, pytype was previously more permissive when variables were initialized to None but may have been re-assigned later. This change improves pytype's ability to catch unsoundness in the affected files.

Checks

  • All tests succeed.
  • Unit tests added.
  • e2e tests added.
  • Documentation updated.

@jkppr jkppr self-requested a review December 20, 2024 11:54
Copy link
Collaborator

@jkppr jkppr left a comment

Choose a reason for hiding this comment

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

lgtm, thanks

@jkppr jkppr merged commit 8dd8b53 into google:master Dec 20, 2024
24 checks passed
@hnbdgr379 hnbdgr379 deleted the pytype_fix branch December 20, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants