Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Don't consider None vs IntEnum comparison ambiguous - #17877

Merged
JukkaL merged 2 commits into
masterfrom
narrowing-none
Oct 4, 2024
Merged

Don't consider None vs IntEnum comparison ambiguous#17877
JukkaL merged 2 commits into
masterfrom
narrowing-none

Conversation

@JukkaL

@JukkaL JukkaL commented Oct 4, 2024

Copy link
Copy Markdown
Collaborator

We can assume that None doesn't compare equal to an enum.

We can assume that None doesn't compare equal to an enum.
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL
JukkaL merged commit 012d52c into master Oct 4, 2024
@JukkaL
JukkaL deleted the narrowing-none branch October 4, 2024 13:33
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