Skip to content

Conversation

@hauntsaninja
Copy link
Collaborator

I think this is needed for homeassistant

I think this is needed for homeassistant
@hauntsaninja hauntsaninja requested a review from cdce8p January 27, 2025 01:24
@github-actions
Copy link
Contributor

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

Copy link
Collaborator

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

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

Good point! Yes, I recently converted the first TypeVar defaults to the new syntax after we dropped 3.12.

I'd love it if mypy_primer could have failed earlier, or at least included a warning in the diff summary that a Syntax error occurred. Without it, the only hint to notice the wrong Python version is comparing the runtimes

/tmp/mypy_primer/new_mypy/venv/bin/mypy on core took 1.14s

Unless you know it usually takes >340s, there isn't really anything to point you towards it. Might even be more relevant as other projects start to use mypy_primer as well, like numpy.

@JelleZijlstra JelleZijlstra merged commit 67a2d04 into python:master Jan 27, 2025
18 checks passed
@hauntsaninja hauntsaninja deleted the 313primer branch January 27, 2025 08:12
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
I think this is needed for homeassistant
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