Skip to content

rename _typeshed.SupportsLenAndGetItem to GetItemAndLenSequence #6563

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

Closed
wants to merge 3 commits into from

Conversation

Akuli
Copy link
Collaborator

@Akuli Akuli commented Dec 10, 2021

Discussed in #6099.

@github-actions
Copy link
Contributor

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

bidict (https://github.com/jab/bidict)
- bidict/_base.py:395: error: Argument 1 to "reversed" has incompatible type "MutableMapping[KT, VT]"; expected "SupportsLenAndGetItem[KT]"  [arg-type]
+ bidict/_base.py:395: error: Argument 1 to "reversed" has incompatible type "MutableMapping[KT, VT]"; expected "GetItemAndLenSequence[KT]"  [arg-type]

@srittau
Copy link
Collaborator

srittau commented Dec 10, 2021

I still prefer something more concise. Maybe we should start a poll in typing/discussions.

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