Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Minor cleanups after #14099 #14100

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
May 19, 2025
Merged

Minor cleanups after #14099 #14100

merged 1 commit into from
May 19, 2025

Conversation

ndmitchell
Copy link
Contributor

We are confining _KT to str, so use that everywhere. Equivalent, but simpler.

We are confining `_KT` to `str`, so use that everywhere. Equivalent, but simpler.
Copy link
Contributor

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

aioredis (https://github.com/aio-libs/aioredis)
- aioredis/client.py:146: note:          def update(self, SupportsKeysAndGetItem[Any, Any], /, **kwargs: Any) -> None
+ aioredis/client.py:146: note:          def update(self, SupportsKeysAndGetItem[str, Any], /, **kwargs: Any) -> None
- aioredis/client.py:146: note:          def update(self, Iterable[tuple[Any, Any]], /, **kwargs: Any) -> None
+ aioredis/client.py:146: note:          def update(self, Iterable[tuple[str, Any]], /, **kwargs: Any) -> None

ibis (https://github.com/ibis-project/ibis)
- ibis/common/annotations.py:450: note:     def update(self, SupportsKeysAndGetItem[Any, Any], /, **kwargs: Any) -> None
+ ibis/common/annotations.py:450: note:     def update(self, SupportsKeysAndGetItem[str, Any], /, **kwargs: Any) -> None
- ibis/common/annotations.py:450: note:     def update(self, Iterable[tuple[Any, Any]], /, **kwargs: Any) -> None
+ ibis/common/annotations.py:450: note:     def update(self, Iterable[tuple[str, Any]], /, **kwargs: Any) -> None

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks!

@srittau srittau merged commit a7ae4ec into python:main May 19, 2025
64 checks passed
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.