diff options
author | Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | 2023-04-24 20:26:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 20:26:18 +0200 |
commit | f223c6de3a39eae6d1c76e30b55da28639dd8777 (patch) | |
tree | f1a75f508f07e62076280e208586894716cf89e9 /tests | |
parent | a83137da3d72990d41ae993128fdde297cbc36cf (diff) | |
download | pylint-git-f223c6de3a39eae6d1c76e30b55da28639dd8777.tar.gz |
Fix a false positive for ``bad-dunder-name`` when there is a user-defined ``__index__`` method. (#8619)
Closes #8613
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/ext/bad_dunder/bad_dunder_name.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional/ext/bad_dunder/bad_dunder_name.py b/tests/functional/ext/bad_dunder/bad_dunder_name.py index 48247aba0..6008866b1 100644 --- a/tests/functional/ext/bad_dunder/bad_dunder_name.py +++ b/tests/functional/ext/bad_dunder/bad_dunder_name.py @@ -49,6 +49,9 @@ class Apples: def __doc__(self): return "Docstring" + def __index__(self): + return 1 + def __increase_me__(val): return val + 1 |