pylint
pylint copied to clipboard
[no_self_use] Add false negative test cases involving empty method body
Type of Changes
| Type | |
|---|---|
| ✓ | :bug: Bug fix |
| :sparkles: New feature | |
| :hammer: Refactoring | |
| :scroll: Docs |
Description
Refs #6993 (eventually hopefully closes it)
Methods with just pass qualify as abstract (and thus don't emit this message) if the argument pass_is_abstract is True (default) to is_abstract:
https://github.com/PyCQA/pylint/blob/1e8f20c22dc358289436de3dba9978d75abe0d17/pylint/extensions/no_self_use.py#L90
So I bet just passing False will create the behavior change, but what do you make of the idea that maybe we should leave this be, if that's how folks are expecting to signal abstract methods?
I don't think an empty method body is an appropriate way to specify an abstract method. Raising NotImplementedError, or marking it up with one of the @abc.abstract* decorators would be.
As I was curious, support for pass_is_abstract comes from the initial commit to astroid:
https://github.com/PyCQA/astroid/commit/85529cfcb8e870333d7292cb493f54d7f3fd92cf.
It wonder how many users actually use this and whether this wasn't just an internal assumption for logilab when abc was less used in 2006?
It wonder how many users actually use this and whether this wasn't just an internal assumption for logilab when abc was less used in 2006?
abc was introduced in 2008 for python 2.6, so I guess it was only a convention used during those dark times (like __implement__...).
diff --git a/doc/whatsnew/2/2.15/index.rst b/doc/whatsnew/2/2.15/index.rst
index 46fa82192..e6d7b433d 100644
--- a/doc/whatsnew/2/2.15/index.rst
+++ b/doc/whatsnew/2/2.15/index.rst
@@ -62,6 +62,10 @@ Other bug fixes
Other Changes
=============
+* ``Pylint`` no longer considers function with a single ``pass`` statement to be abstract.
+ They should either be decorated with ``@abstractmethod`` or ``raise NotImplementedError``.
+
+ Closes #6993
Internal changes
================
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index 7684d1ac2..572cb726c 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -1238,7 +1238,7 @@ class VariablesChecker(BaseChecker):
# Don't check arguments of abstract methods or within an interface.
is_method = node.is_method()
- if is_method and node.is_abstract():
+ if is_method and node.is_abstract(pass_is_abstract=False):
return
global_names = _flattened_scope_names(node.nodes_of_class(nodes.Global))
diff --git a/pylint/extensions/docparams.py b/pylint/extensions/docparams.py
index 35c847e0b..a126a23bb 100644
--- a/pylint/extensions/docparams.py
+++ b/pylint/extensions/docparams.py
@@ -252,7 +252,7 @@ class DocstringParameterChecker(BaseChecker):
def check_functiondef_returns(
self, node: nodes.FunctionDef, node_doc: Docstring
) -> None:
- if (not node_doc.supports_yields and node.is_generator()) or node.is_abstract():
+ if (not node_doc.supports_yields and node.is_generator()) or node.is_abstract(pass_is_abstract=False):
return
return_nodes = node.nodes_of_class(astroid.Return)
@@ -264,7 +264,7 @@ class DocstringParameterChecker(BaseChecker):
def check_functiondef_yields(
self, node: nodes.FunctionDef, node_doc: Docstring
) -> None:
- if not node_doc.supports_yields or node.is_abstract():
+ if not node_doc.supports_yields or node.is_abstract(pass_is_abstract=False):
return
if (
@@ -640,7 +640,7 @@ class DocstringParameterChecker(BaseChecker):
:param node: The node show the message on.
"""
- if node.is_abstract():
+ if node.is_abstract(pass_is_abstract=False):
try:
missing_excs.remove("NotImplementedError")
except KeyError:
diff --git a/pylint/extensions/no_self_use.py b/pylint/extensions/no_self_use.py
index 4a20873c8..51604c74f 100644
--- a/pylint/extensions/no_self_use.py
+++ b/pylint/extensions/no_self_use.py
@@ -87,7 +87,7 @@ class NoSelfUseChecker(BaseChecker):
and node.type == "method"
and node.name not in PYMETHODS
and not (
- node.is_abstract()
+ node.is_abstract(pass_is_abstract=False)
or overrides_a_method(class_node, node.name)
or decorated_with_property(node)
or _has_bare_super_call(node)
diff --git a/tests/functional/ext/no_self_use/no_self_use.py b/tests/functional/ext/no_self_use/no_self_use.py
index 577216568..c0dce9390 100644
--- a/tests/functional/ext/no_self_use/no_self_use.py
+++ b/tests/functional/ext/no_self_use/no_self_use.py
@@ -130,8 +130,8 @@ class Foo1(ABC):
def b(self):
raise NotImplementedError
- def c(self):
- pass # pass counts as abstract
+ def c(self): # [no-self-use]
+ pass # pass NO LONGER counts as abstract, this is a very old pattern
class Foo2(Protocol):
@@ -150,7 +150,7 @@ class Foo3:
def a(self, var): ...
def a(self, var):
- pass
+ raise NotImplementedError
class Foo4:
diff --git a/tests/functional/ext/no_self_use/no_self_use.txt b/tests/functional/ext/no_self_use/no_self_use.txt
index 9cf9a049b..c7aa96f41 100644
--- a/tests/functional/ext/no_self_use/no_self_use.txt
+++ b/tests/functional/ext/no_self_use/no_self_use.txt
@@ -1,3 +1,6 @@
no-self-use:17:4:17:23:Toto.function_method:Method could be a function:INFERENCE
no-self-use:25:4:25:35:Toto.async_function_method:Method could be a function:INFERENCE
-no-self-use:102:4:102:9:C.a:Method could be a function:INFERENCE
+no-self-use:29:4:29:17:Toto.pass_only:Method could be a function:INFERENCE
+no-self-use:34:4:34:22:Toto.docstring_only:Method could be a function:INFERENCE
+no-self-use:110:4:110:9:C.a:Method could be a function:INFERENCE
+no-self-use:133:4:133:9:Foo1.c:Method could be a function:INFERENCE
This would fix it.
However, this fails some of our tests as we start warning about missing docstrings and unused variables. I think it might make sense to keep this as is: pass is often used to quickly draw up a certain class and worry about implementation later. I think users might consider it annoying if pylint starts warning about this in the middel of their writing process.
I think I'm in disagreement; the same argument could be used to justify disabling pretty much every pylint check. If people are annoyed by pylint starting to warn in the middle of their writing process, an obvious solution would be to just not run it at a time when they don't want to hear what it has to say. If it runs automatically e.g. within an IDE, then great: the issues it flags serve as a TODO list.
I think I'm in disagreement; the same argument could be used to justify disabling pretty much every pylint check. If people are annoyed by pylint starting to warn in the middle of their writing process, an obvious solution would be to just not run it at a time when they don't want to hear what it has to say. If it runs automatically e.g. within an IDE, then great: the issues it flags serve as a TODO list.
class Fruit:
def cook(temperature):
raise NotImplementedError
class Apple(Fruit):
def cook(temperature):
print(f"I can be cooked at {temperature}!")
class Coconut(Fruit):
def cook(temperature):
pass
I really struggled to come up with a good example here, but aren't there cases where a method doesn't need to do anything for a subclass? I can't think of a good example right now, but this does seem like a pattern that could be written.
Although it probably calls for a refactor I don't think raising unused-argument on Coconut.cook makes sense.
I do agree such cases likely exist. But considering the mentioned "use pass to indicate worrying about implementation later" workflow, there's no way pylint can know if it's an instance of that, or if it's intentionally done like that "for good". In that sense it seems to make sense to me to flag the issue(s). Users can let pylint know they know better by adding the needed # pylint: disables where appropriate.
Users can let pylint know they know better by adding the needed
# pylint: disables where appropriate.
In general I think we prefer to be more cautious and prefer not warning over adding more false positives.
I'm -0.5 on the change since I don't use the pattern myself but can see user annoyance, but I'd like the opinion of others as well!
I'm +1 on this one as I think simply 'pass' is not appropriate for abstractness, as it's doing nothing and thus failing silently. If the goal was to signal abstractness there's two valid way. In Daniel example it would actually hide the fact that you can't cook a Coconut. Here's an example of pass I think make sense:
class LivingThing:
def make_sound(self):
raise NotImplementedError
class Cow(LivingThing):
def make_sound(self):
print(f"Moooh. Moomoo.")
class Plant(LivingThing):
def make_sound(self):
pass
Because plant do not make any sound, so the implementation is actually "doing nothing".
I added the need decision label.
Please vote on this comment if you have an opinion on this change:
- 👍 Let's raise no-self-use on empty method body
- 👎 Keep not raising on empty method body
I rebased and applied Daniel's patch from above.
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- unused-argument: Unused argument 'frame' https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/node_ng.py#L568
- unused-argument: Unused argument 'name' https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/node_ng.py#L568
- no-self-use: Method could be a function https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/node_ng.py#L568
- redundant-returns-doc: Redundant returns documentation https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/scoped_nodes/scoped_nodes.py#L406
- redundant-returns-doc: Redundant returns documentation https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/scoped_nodes/scoped_nodes.py#L413
- unused-argument: Unused argument 'spec' https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/interpreter/_import/spec.py#L115
- unused-argument: Unused argument 'processed' https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/interpreter/_import/spec.py#L115
- no-self-use: Method could be a function https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/interpreter/_import/spec.py#L114
Effect on home-assistant: The following messages are now emitted:
- unused-argument: Unused argument 'flow' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L163
- unused-argument: Unused argument 'result' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L163
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L163
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L649
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L653
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/auth/providers/init.py#L121
- unused-argument: Unused argument 'refresh_token' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/auth/providers/init.py#L126
- unused-argument: Unused argument 'remote_ip' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/auth/providers/init.py#L126
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/auth/providers/init.py#L125
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L976
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1060
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1066
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1073
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1295
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1295
- unused-argument: Unused argument 'options' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/schema_config_entry_flow.py#L331
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/schema_config_entry_flow.py#L331
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/schema_config_entry_flow.py#L341
- unused-argument: Unused argument 'options' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/schema_config_entry_flow.py#L341
- unused-argument: Unused argument 'args' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L83
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L83
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L83
- unused-argument: Unused argument 'args' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L86
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L86
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L86
- unused-argument: Unused argument 'services' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/usage.py#L45
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/usage.py#L45
- unused-argument: Unused argument 'prefix' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/frontend/init.py#L552
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/frontend/init.py#L552
- unused-argument: Unused argument 'language' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/conversation/agent.py#L50
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/conversation/agent.py#L50
- unused-argument: Unused argument 'language' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/conversation/agent.py#L53
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/conversation/agent.py#L53
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/point/init.py#L299
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L366
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L366
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L375
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L375
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L382
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L382
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L391
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L391
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L400
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L400
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L409
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L409
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zeroconf/models.py#L14
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zeroconf/models.py#L23
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cloud/client.py#L185
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cloud/client.py#L188
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cloud/client.py#L191
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zwave_js/entity.py#L70
- unused-argument: Unused argument 'input_obj' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/lcn/init.py#L308
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/lcn/init.py#L308
- unused-argument: Unused argument 'unlatch' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/nuki/lock.py#L181
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/nuki/lock.py#L181
- unused-argument: Unused argument 'data' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/broadlink/entity.py#L42
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/broadlink/entity.py#L42
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/weather/init.py#L1159
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/weather/init.py#L1163
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/weather/init.py#L1167
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/itunes/media_player.py#L468
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/mqtt/mixins.py#L1067
- unused-argument: Unused argument 'config' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/mqtt/mixins.py#L1200
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/mqtt/mixins.py#L1200
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/homekit/accessories.py#L601
- unused-argument: Unused argument 'data' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/nibe_heatpump/init.py#L335
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/nibe_heatpump/init.py#L335
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/rainmachine/init.py#L580
- unused-argument: Unused argument 'group_uuid' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L196
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L196
- unused-argument: Unused argument 'group_uuid' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L204
- unused-argument: Unused argument 'cast_status' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L204
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L204
- unused-argument: Unused argument 'discover' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/media_player.py#L252
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/media_player.py#L252
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/guardian/init.py#L370
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/simplisafe/init.py#L838
- unused-argument: Unused argument 'event' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/simplisafe/init.py#L842
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/simplisafe/init.py#L842
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/switchbot/entity.py#L68
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/hue/v2/entity.py#L141
- unused-argument: Unused argument 'external_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/geonetnz_volcano/init.py#L201
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/geonetnz_volcano/init.py#L201
- unused-argument: Unused argument 'event' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/rfxtrx/init.py#L540
- unused-argument: Unused argument 'device_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/rfxtrx/init.py#L540
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/rfxtrx/init.py#L539
- unused-argument: Unused argument 'packet' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/enocean/device.py#L32
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/enocean/device.py#L32
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/opengarage/entity.py#L36
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/trafikverket_camera/entity.py#L50
- unused-argument: Unused argument 'device' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/wiffi/init.py#L185
- unused-argument: Unused argument 'metric' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/wiffi/init.py#L185
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/wiffi/init.py#L185
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L161
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L164
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L178
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L185
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L192
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L195
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L205
- unused-argument: Unused argument 'element' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/elkm1/init.py#L507
- unused-argument: Unused argument 'changeset' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/elkm1/init.py#L507
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/elkm1/init.py#L507
- unused-argument: Unused argument 'entity_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/group/init.py#L554
- unused-argument: Unused argument 'new_state' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/group/init.py#L555
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/group/init.py#L552
- unused-argument: Unused argument 'atv' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/apple_tv/init.py#L139
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/apple_tv/init.py#L139
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/apple_tv/init.py#L142
- unused-argument: Unused argument 'element' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/upb/init.py#L96
- unused-argument: Unused argument 'changeset' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/upb/init.py#L96
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/upb/init.py#L96
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/imap/coordinator.py#L214
- unused-argument: Unused argument 'attr_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L108
- unused-argument: Unused argument 'attr_name' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L108
- unused-argument: Unused argument 'value' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L108
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L108
- unused-argument: Unused argument 'last_state' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L224
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L224
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L342
- unused-argument: Unused argument 'attr_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/fan.py#L128
- unused-argument: Unused argument 'attr_name' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/fan.py#L128
- unused-argument: Unused argument 'value' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/fan.py#L128
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/fan.py#L128
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L217
- unused-argument: Unused argument 'zone_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L220
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L220
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L243
- unused-argument: Unused argument 'starting_zone_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L247
- unused-argument: Unused argument 'max_zone_ids' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L247
- unused-argument: Unused argument 'zone_status_mask_flag' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L247
- unused-argument: Unused argument 'zone_status_mask' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L247
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L246
- unused-argument: Unused argument 'tsn' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L406
- unused-argument: Unused argument 'command_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L406
- unused-argument: Unused argument 'args' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L406
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L406
- unused-argument: Unused argument 'args' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L420
- unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L420
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L420
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L449
- unused-argument: Unused argument 'zigpy_device' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L582
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L582
- unused-argument: Unused argument 'duration' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L586
- no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L586
Effect on pygame: The following messages are now emitted:
- no-self-use: Method could be a function https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/_camera_vidcapture.py#L84
- no-self-use: Method could be a function https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/_camera_vidcapture.py#L87
- no-self-use: Method could be a function https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/_camera_vidcapture.py#L90
- suppressed-message: Suppressed 'unused-argument' (from line 44) https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/_camera_vidcapture.py#L87
- unused-argument: Unused argument 'args' https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/sprite.py#L170
- unused-argument: Unused argument 'kwargs' https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/sprite.py#L170
- no-self-use: Method could be a function https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/sprite.py#L170
Effect on black: The following messages are now emitted:
- deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/psf/black/blob/e9356c1ff0083aea4416bf1d3e29748634bb4f7f/src/blib2to3/pgen2/tokenize.py#L200
Effect on music21: The following messages are now emitted:
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/volpiano.py#L467
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/tinyNotation.py#L284
- unused-argument: Unused argument 'tokenString' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/tinyNotation.py#L412
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/tinyNotation.py#L412
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/note.py#L880
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L409
- unused-argument: Unused argument 'raw' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L432
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L432
- unused-argument: Unused argument 'force' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L440
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L440
- unused-argument: Unused argument 'simulate' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L523
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L523
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L1353
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/expressions.py#L468
- unused-argument: Unused argument 'compress' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L156
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L156
- unused-argument: Unused argument 'solution' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L173
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L173
- unused-argument: Unused argument 'sStream' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L180
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L180
- unused-argument: Unused argument 'subStream' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L187
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L187
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/musedata/translate.py#L479
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/stream/filters.py#L74
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L18
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L100
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L240
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L252
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L291
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L297
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L310
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L316
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L322
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L328
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L334
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L340
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L346
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L352
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L358
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L364
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L370
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L376
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L382
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L385
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L388
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L391
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L394
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L401
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L408
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L415
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L421
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L428
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L434
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L441
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L447
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L453
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L459
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L466
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L472
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L478
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L484
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L490
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/romanText/clercqTemperley.py#L1136
- unused-argument: Unused argument 'e' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L272
- unused-argument: Unused argument 'thisChord' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L272
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L272
- unused-argument: Unused argument 's' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L392
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L392
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/fixer.py#L37
- unused-argument: Unused argument 'drawObj' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/capella/fromCapellaXML.py#L887
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/capella/fromCapellaXML.py#L887
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L25
- unused-argument: Unused argument 'includeClassLabel' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L31
- unused-argument: Unused argument 'includeId' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L31
- unused-argument: Unused argument 'lineBreak' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L31
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L31
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/base.py#L237
- unused-argument: Unused argument 'subplot' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/primitives.py#L534
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/primitives.py#L534
- unused-argument: Unused argument 'el' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/plot.py#L265
- unused-argument: Unused argument 'formatDict' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/plot.py#L266
- unused-argument: Unused argument 'values' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/plot.py#L264
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/plot.py#L264
- unused-argument: Unused argument 'dataList' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/axis.py#L280
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/axis.py#L280
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/abcFormat/init.py#L199
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/abcFormat/init.py#L206
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/midi/init.py#L1668
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/braille/test.py#L1169
- no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/braille/test.py#L1175
Effect on pytest: The following messages are now emitted:
- unused-argument: Unused argument 'record' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/logging.py#L905
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/logging.py#L913
- unused-argument: Unused argument 'when' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/logging.py#L916
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/logging.py#L916
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/capture.py#L231
- unused-argument: Unused argument 'testcase' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L213
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L213
- unused-argument: Unused argument 'testcase' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L295
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L295
- unused-argument: Unused argument 'testcase' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L298
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L298
- unused-argument: Unused argument 'testcase' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L301
- unused-argument: Unused argument 'elapsed' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L301
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L301
- deprecated-typing-alias: 'typing.Callable' is deprecated, use 'collections.abc.Callable' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/recwarn.py#L51
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/nodes.py#L321
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/nodes.py#L324
- redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L144
- redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L178
- redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L382
- redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L625
- redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L808
- redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L888
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L126
- deprecated-typing-alias: 'typing.Callable' is deprecated, use 'collections.abc.Callable' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/mark/expression.py#L211
- unused-argument: Unused argument 'names' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/assertion/init.py#L76
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/assertion/init.py#L76
The following messages are no longer emitted:
- deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/skipping.py#L295
- deprecated-typing-alias: 'typing.Callable' is deprecated, use 'collections.abc.Callable' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L797
- deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L936
- deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L974
- deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L1000
- deprecated-typing-alias: 'typing.Callable' is deprecated, use 'collections.abc.Callable' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/compat.py#L105
- deprecated-typing-alias: 'typing.Callable' is deprecated, use 'collections.abc.Callable' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/compat.py#L174
- deprecated-typing-alias: 'typing.Callable' is deprecated, use 'collections.abc.Callable' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/pytester.py#L1758
- no-member: Instance of 'TextIOWrapper' has no 'mode' member https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/config/init.py#L432
- redefined-variable-type: Redefinition of file type from _io.TextIOWrapper to colorama.ansitowin32.StreamWrapper https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/_io/terminalwriter.py#L74
Effect on django: The following messages are now emitted:
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/apps/config.py#L271
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/mail/backends/base.py#L21
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/mail/backends/base.py#L40
- unused-argument: Unused argument 'parser' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/management/base.py#L370
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/management/base.py#L370
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/serializers/base.py#L158
- unused-argument: Unused argument 'obj' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/serializers/base.py#L172
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/serializers/base.py#L172
- unused-argument: Unused argument 'input_data' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
- unused-argument: Unused argument 'META' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
- unused-argument: Unused argument 'content_length' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
- unused-argument: Unused argument 'boundary' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
- unused-argument: Unused argument 'encoding' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L83
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L145
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L152
- unused-argument: Unused argument 'kwargs' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/cache/backends/base.py#L384
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/cache/backends/base.py#L384
- unused-argument: Unused argument 'kwargs' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/cache/backends/base.py#L388
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/cache/backends/base.py#L388
- unused-argument: Unused argument 'context' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/template/base.py#L947
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/template/base.py#L947
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/template/loaders/base.py#L46
- unused-argument: Unused argument 'item' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/test/runner.py#L138
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/test/runner.py#L138
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/test/testcases.py#L312
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/test/utils.py#L955
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/http/response.py#L340
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/models/base.py#L1255
- unused-argument: Unused argument 'value' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/models/fields/init.py#L2802
- unused-argument: Unused argument 'model_instance' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/models/fields/init.py#L2802
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/models/fields/init.py#L2802
- unused-argument: Unused argument 'old_table' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L23
- unused-argument: Unused argument 'new_table' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L23
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L23
- unused-argument: Unused argument 'table' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L29
- unused-argument: Unused argument 'old_column' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L29
- unused-argument: Unused argument 'new_column' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L29
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L29
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/base.py#L544
- unused-argument: Unused argument 'table_names' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/base.py#L551
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/base.py#L551
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/base.py#L650
- unused-argument: Unused argument 'fields' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/operations.py#L365
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/operations.py#L365
- unused-argument: Unused argument 'expression' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/operations.py#L655
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/operations.py#L655
- unused-argument: Unused argument 'handler' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L161
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L161
- unused-argument: Unused argument 'handler' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L174
- unused-argument: Unused argument 'item' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L174
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L174
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/forms/forms.py#L356
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/forms/formsets.py#L464
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/contrib/sessions/backends/file.py#L193
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/contrib/staticfiles/handlers.py#L24
- unused-argument: Unused argument 'schema_editor' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/contrib/postgres/indexes.py#L38
- no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/contrib/postgres/indexes.py#L38
Effect on pandas: The following messages are now emitted:
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/indexing/test_loc.py#L141
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/indexing/test_loc.py#L432
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/indexing/multiindex/test_partial.py#L39
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/frame/methods/test_replace.py#L908
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/dtypes/test_inference.py#L1198
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/io/test_sql.py#L2923
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/io/parser/test_textreader.py#L179
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/io/parser/test_textreader.py#L183
- unused-argument: Unused argument 'args' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/base/test_constructors.py#L57
- unused-argument: Unused argument 'kwargs' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/base/test_constructors.py#L57
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/base/test_constructors.py#L57
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/arrays/datetimelike.py#L437
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/internals/managers.py#L1903
- unused-argument: Unused argument 'left_join_keys' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L814
- unused-argument: Unused argument 'right_join_keys' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L814
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L813
- unused-argument: Unused argument 'left_join_keys' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L819
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L819
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/io/pytables.py#L2226
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/io/pytables.py#L2776
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/io/pytables.py#L2779
- unused-argument: Unused argument 'where' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/io/pytables.py#L2801
- no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853b...
This comment was truncated because GitHub allows only 65536 characters in a comment.
This comment was generated for commit 8e6f899a416daf068a65479f89f88a1258270ae7