KEMBAR78
Join meet symmetric by MechanicalConstruct · Pull Request #18227 · python/mypy · GitHub
Skip to content

Conversation

MechanicalConstruct
Copy link
Contributor

@MechanicalConstruct MechanicalConstruct commented Dec 1, 2024

Fixes #18199

Updated join.py to return AnyType(TypeOfAny.special_form) for both UnboundType and AnyType.

Updated meet.py to return UninhabitedType() when visiting a UnboundType as a NoneType when state.strict_optional is true.

…abited Type Meet

update join to return AnyType in the case of NoneType + AnyType
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2024

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

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@hauntsaninja hauntsaninja merged commit 1a95964 into python:master Dec 2, 2024
19 checks passed
@MechanicalConstruct MechanicalConstruct deleted the join_meet_symmetric branch December 2, 2024 21:55
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.

Join and meet are not symmetric

2 participants