Skip to content

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented Nov 12, 2023

Extracted from #11003 . Only does direct replacements of the full aliased union.

@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood 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! I still think we should hold off at least a few days before merging, though -- there were a few regressions in mypy 1.7, so it's very possible that not everyone will be able to upgrade just yet (and this alias is only available in _typeshed if people are using the very latest version of mypy)

@Avasam
Copy link
Collaborator Author

Avasam commented Nov 12, 2023

I still think we should hold off at least a few days before merging, though -- there were a few regressions in mypy 1.7, so it's very possible that not everyone will be able to upgrade just yet

Agreed. I mistook the typeshed sync to be in 1.6 otherwise I would've waited a bit more before opening #11003

@AlexWaygood
Copy link
Member

I think we're good to go on this now!

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 4687faa into python:main Nov 29, 2023
@Avasam Avasam deleted the Direct-Union-replacements-for-ConvertibleToInt/ConvertibleToFloat branch November 29, 2023 15:27
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