Skip to content

collections: fix some Counter nits#7313

Merged
Akuli merged 4 commits intopython:masterfrom
hauntsaninja:count
Feb 20, 2022
Merged

collections: fix some Counter nits#7313
Akuli merged 4 commits intopython:masterfrom
hauntsaninja:count

Conversation

@hauntsaninja
Copy link
Collaborator

No description provided.

@github-actions

This comment has been minimized.

@hauntsaninja hauntsaninja marked this pull request as draft February 20, 2022 02:51
@github-actions

This comment has been minimized.

@hauntsaninja
Copy link
Collaborator Author

Okay, looks like the positional-only stuff was changed in python/cpython#20548

@hauntsaninja hauntsaninja marked this pull request as ready for review February 20, 2022 07:06
@github-actions

This comment has been minimized.

def __ne__(self, other: object) -> bool: ...
else:
def __eq__(self, __other: object) -> bool: ...
def __ne__(self, __other: object) -> bool: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

These don't seem to exist on 3.9, 3.8, 3.7 or 3.6.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're right, it inherits them from __dict__.

Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

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

Please merge when CI passes.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@Akuli Akuli merged commit 2279c87 into python:master Feb 20, 2022
@hauntsaninja hauntsaninja deleted the count branch February 20, 2022 10:14
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