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

collections/typing: fix various arg names #4258

Merged
merged 2 commits into from
Jun 28, 2020

Conversation

hauntsaninja
Copy link
Collaborator

This feels nervous, but if it passes unit tests it seems unlikely to
break things

hauntsaninja added 2 commits June 23, 2020 01:14
This feels nervous, but if it passes unit tests it's unlikely to break
anything
@@ -302,15 +302,15 @@ class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]):
@abstractmethod
def __getitem__(self, s: slice) -> Sequence[_T_co]: ...
# Mixin methods
def index(self, x: Any, start: int = ..., end: int = ...) -> int: ...
def count(self, x: Any) -> int: ...
def index(self, value: Any, start: int = ..., stop: int = ...) -> int: ...
Copy link
Member

Choose a reason for hiding this comment

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

A lot of these should probably also be positional-only.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ideally, yeah. Note that the actual classes in collections.abc don't use positional-only args though, so that would diverge from CPython

hauntsaninja pushed a commit to hauntsaninja/mypy that referenced this pull request Jun 23, 2020
@hauntsaninja
Copy link
Collaborator Author

@JelleZijlstra running into a mypy conflict, would you be willing to merge this and python/mypy#9037?

JelleZijlstra added a commit to JelleZijlstra/mypy that referenced this pull request Jun 28, 2020
Prepare for merge dance on python/typeshed#4258
@JelleZijlstra
Copy link
Member

Yes, starting now with an initial typeshed sync in mypy.

JelleZijlstra added a commit to python/mypy that referenced this pull request Jun 28, 2020
Prepare for merge dance on python/typeshed#4258
@JelleZijlstra JelleZijlstra merged commit fe58699 into python:master Jun 28, 2020
JelleZijlstra pushed a commit to python/mypy that referenced this pull request Jun 28, 2020
@hauntsaninja hauntsaninja deleted the col branch June 28, 2020 20:22
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