Skip to content

Remove support for builtins.Any #18578

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

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Jan 31, 2025

While doing some cleanup, I noticed a reference to builtins.Any. To the best of my knowledge, it was never implemented.

Copy link
Contributor

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

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Nice find. I guess if you put something called Any in builtins, will automatically recognize it as the real Any.

@hauntsaninja hauntsaninja merged commit f44a60d into python:master Feb 1, 2025
18 checks passed
@cdce8p cdce8p deleted the remove-builtins-Any branch February 1, 2025 02:22
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
While doing some cleanup, I noticed a reference to `builtins.Any`. To
the best of my knowledge, it was never implemented.
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.

3 participants