diff options
Diffstat (limited to 'tests/functional/p')
6 files changed, 6 insertions, 8 deletions
diff --git a/tests/functional/p/postponed_evaluation_activated.py b/tests/functional/p/postponed_evaluation_activated.py index 3cc694d47..3492fe5c2 100644 --- a/tests/functional/p/postponed_evaluation_activated.py +++ b/tests/functional/p/postponed_evaluation_activated.py @@ -1,4 +1,4 @@ -# pylint: disable=missing-docstring,no-self-use,unused-argument,pointless-statement +# pylint: disable=missing-docstring,unused-argument,pointless-statement # pylint: disable=too-few-public-methods,no-name-in-module from __future__ import annotations diff --git a/tests/functional/p/postponed_evaluation_activated_with_alias.py b/tests/functional/p/postponed_evaluation_activated_with_alias.py index 4f4724771..f9899f34a 100644 --- a/tests/functional/p/postponed_evaluation_activated_with_alias.py +++ b/tests/functional/p/postponed_evaluation_activated_with_alias.py @@ -1,4 +1,4 @@ -# pylint: disable=missing-docstring,no-self-use,unused-argument,pointless-statement +# pylint: disable=missing-docstring,unused-argument,pointless-statement # pylint: disable=too-few-public-methods,no-name-in-module from __future__ import annotations as __annotations__ diff --git a/tests/functional/p/postponed_evaluation_not_activated.py b/tests/functional/p/postponed_evaluation_not_activated.py index f892414f0..76e564a9a 100644 --- a/tests/functional/p/postponed_evaluation_not_activated.py +++ b/tests/functional/p/postponed_evaluation_not_activated.py @@ -1,4 +1,4 @@ -# pylint: disable=missing-docstring,no-self-use,unused-argument,pointless-statement +# pylint: disable=missing-docstring,unused-argument,pointless-statement # pylint: disable=too-few-public-methods class Class: diff --git a/tests/functional/p/protected_access.py b/tests/functional/p/protected_access.py index 8d2f945d2..209f571c4 100644 --- a/tests/functional/p/protected_access.py +++ b/tests/functional/p/protected_access.py @@ -1,7 +1,7 @@ """Tests for protected_access""" # pylint: disable=missing-class-docstring, too-few-public-methods, pointless-statement # pylint: disable=missing-function-docstring, invalid-metaclass, no-member -# pylint: disable=no-self-argument, no-self-use, undefined-variable, unused-variable +# pylint: disable=no-self-argument, undefined-variable, unused-variable # Test that exclude-protected can be used to exclude names from protected-access warning class Protected: diff --git a/tests/functional/p/protocol_classes.py b/tests/functional/p/protocol_classes.py index df48fc5d6..c17266c58 100644 --- a/tests/functional/p/protocol_classes.py +++ b/tests/functional/p/protocol_classes.py @@ -28,7 +28,7 @@ class Protocol: #pylint:disable=too-few-public-methods class HasherFake(Protocol): """A hashing algorithm, e.g. :func:`hashlib.sha256`.""" - def update(self, blob: bytes): # [no-self-use, unused-argument] + def update(self, blob: bytes): # [unused-argument] ... - def digest(self) -> bytes: # [no-self-use] + def digest(self) -> bytes: ... diff --git a/tests/functional/p/protocol_classes.txt b/tests/functional/p/protocol_classes.txt index c9d386146..cf17e641a 100644 --- a/tests/functional/p/protocol_classes.txt +++ b/tests/functional/p/protocol_classes.txt @@ -1,3 +1 @@ -no-self-use:31:4:31:14:HasherFake.update:Method could be a function:UNDEFINED unused-argument:31:21:31:32:HasherFake.update:Unused argument 'blob':INFERENCE -no-self-use:33:4:33:14:HasherFake.digest:Method could be a function:UNDEFINED |