Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Aug 1, 2024

Sync typeshed

Source commit:
python/typeshed@4ef2d66

Note that you will need to close and re-open the PR in order to trigger CI.

mypybot and others added 4 commits August 1, 2024 00:06
This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on mypy_primer, so it's not the worst thing
to undo. Patching this in typeshed also feels weird, since there's a
more general soundness issue. If a typevar has a bound or constraint, we
might not want to solve it to a Literal.

If we can confirm the performance regression or fix the unsoundness
within mypy, I might pursue upstreaming this in typeshed.

(Reminder: add this to the sync_typeshed script once merged)
@github-actions
Copy link
Contributor Author

github-actions bot commented Aug 1, 2024

Diff from mypy_primer, showing the effect of this PR on open source code:

pip (https://github.com/pypa/pip)
+ src/pip/_internal/cli/parser.py:292: error: Return type "None" of "error" incompatible with return type "Never" in supertype "OptionParser"  [override]

core (https://github.com/home-assistant/core)
+ homeassistant/runner.py:179: error: Cannot assign to final name "_USE_POSIX_SPAWN"  [misc]

mkdocs (https://github.com/mkdocs/mkdocs)
+ mkdocs/tests/__init__.py:4: error: Cannot assign to final name "_MAX_LENGTH"  [misc]

anyio (https://github.com/agronholm/anyio)
+ src/anyio/_backends/_asyncio.py:335: error: Argument 1 to "getcoroutinestate" has incompatible type "Coroutine[Any, Any, Any] | None"; expected "Coroutine[Any, Any, Any]"  [arg-type]
+ src/anyio/_backends/_asyncio.py:1845: error: Argument 4 to "__init__" of "TaskInfo" has incompatible type "Coroutine[Any, Any, Any] | None"; expected "Generator[Any, Any, Any] | Awaitable[Any]"  [arg-type]

@JelleZijlstra JelleZijlstra merged commit a0dbbd5 into master Aug 1, 2024
@JelleZijlstra JelleZijlstra deleted the mypybot/sync-typeshed branch August 1, 2024 01:40
@JelleZijlstra JelleZijlstra restored the mypybot/sync-typeshed branch August 1, 2024 01:40
@JelleZijlstra JelleZijlstra deleted the mypybot/sync-typeshed branch August 1, 2024 01:40
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.

4 participants