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

Add missing special method names #3282

Merged
merged 3 commits into from Dec 2, 2019

Conversation

MatthijsBlom
Copy link
Contributor

Steps

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Add a ChangeLog entry describing what your PR does.
  • If it's a new feature or an important bug fix, add a What's New entry in doc/whatsnew/<current release.rst>.
  • Write a good description on what the PR does.

Description

Add __pow__, __imatmul__, __trunc__, __floor__, and __ceil__ to the list of recognized special method names. As far as I can tell, there are no missing names remaining -- for Python 3 at least.

Type of Changes

Type
🐛 Bug fix

Related Issue

Closes #3281

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 89.859% when pulling d6d007c on MatthijsBlom:issue/3281 into 04e72bc on PyCQA:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 89.859% when pulling d6d007c on MatthijsBlom:issue/3281 into 04e72bc on PyCQA:master.

@PCManticore PCManticore merged commit 6d818e3 into pylint-dev:master Dec 2, 2019
@PCManticore
Copy link
Contributor

Thank you for the PR @MatthijsBlom !

DanielNoord added a commit to DanielNoord/pylint that referenced this pull request Aug 31, 2021
This fixes a false positive emitted for dictionaries that contain only
tuples as keys. This makes unpacking the dictionary without calling
`.items()` valid.
This closes pylint-dev#3282
DanielNoord added a commit to DanielNoord/pylint that referenced this pull request Aug 31, 2021
This fixes a false positive emitted for dictionaries that contain only
tuples as keys. This makes unpacking the dictionary without calling
`.items()` valid.
This closes pylint-dev#3282
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.

R0201 false positives
3 participants