Skip to content
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

Sync typeshed #14375

Merged
merged 4 commits into from
Jan 1, 2023
Merged

Sync typeshed #14375

merged 4 commits into from
Jan 1, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 1, 2023

Sync typeshed

Source commit:
python/typeshed@46f0d91

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

mypybot and others added 4 commits January 1, 2023 00:04
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)
Since the plugin provides superior type checking:
#13987 (comment)
@AlexWaygood AlexWaygood closed this Jan 1, 2023
@AlexWaygood AlexWaygood reopened this Jan 1, 2023
@github-actions
Copy link
Contributor Author

github-actions bot commented Jan 1, 2023

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

jinja (https://github.com/pallets/jinja)
- src/jinja2/environment.py:864: error: Argument 3 to "ZipFile" has incompatible type "int"; expected "Literal[0, 8, 12, 14]"  [arg-type]

vision (https://github.com/pytorch/vision)
- torchvision/datasets/utils.py:301: error: Argument "compression" to "ZipFile" has incompatible type "int"; expected "Literal[0, 8, 12, 14]"  [arg-type]

pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/launcher.py:149: error: Argument 2 to "Popen" has incompatible type "**Dict[str, Optional[Any]]"; expected "Collection[int]"  [arg-type]

@hauntsaninja hauntsaninja merged commit c831654 into master Jan 1, 2023
@hauntsaninja hauntsaninja deleted the mypybot/sync-typeshed branch January 1, 2023 00:50
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