pylint icon indicating copy to clipboard operation
pylint copied to clipboard

[no_self_use] Add false negative test cases involving empty method body

Open scop opened this issue 3 years ago • 10 comments

Type of Changes

Type
:bug: Bug fix
:sparkles: New feature
:hammer: Refactoring
:scroll: Docs

Description

Refs #6993 (eventually hopefully closes it)

scop avatar Jun 21 '22 08:06 scop

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?

jacobtylerwalls avatar Jun 21 '22 12:06 jacobtylerwalls

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.

scop avatar Jun 22 '22 08:06 scop

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?

DanielNoord avatar Jun 22 '22 08:06 DanielNoord

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__...).

Pierre-Sassoulas avatar Jun 22 '22 09:06 Pierre-Sassoulas

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.

DanielNoord avatar Jul 07 '22 17:07 DanielNoord

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.

scop avatar Jul 07 '22 19:07 scop

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.

DanielNoord avatar Jul 07 '22 19:07 DanielNoord

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.

scop avatar Jul 07 '22 19:07 scop

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!

DanielNoord avatar Jul 07 '22 19:07 DanielNoord

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.

Pierre-Sassoulas avatar Jul 09 '22 19:07 Pierre-Sassoulas

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

Pierre-Sassoulas avatar Nov 20 '22 12:11 Pierre-Sassoulas

I rebased and applied Daniel's patch from above.

Pierre-Sassoulas avatar Sep 13 '23 20:09 Pierre-Sassoulas

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. unused-argument: Unused argument 'frame' https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/node_ng.py#L568
  2. unused-argument: Unused argument 'name' https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/node_ng.py#L568
  3. no-self-use: Method could be a function https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/node_ng.py#L568
  4. redundant-returns-doc: Redundant returns documentation https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/scoped_nodes/scoped_nodes.py#L406
  5. redundant-returns-doc: Redundant returns documentation https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/nodes/scoped_nodes/scoped_nodes.py#L413
  6. unused-argument: Unused argument 'spec' https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/interpreter/_import/spec.py#L115
  7. unused-argument: Unused argument 'processed' https://github.com/pylint-dev/astroid/blob/92e4f4abb9fa9bb164e28bf0b6cc063bd532db47/astroid/interpreter/_import/spec.py#L115
  8. 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:

  1. unused-argument: Unused argument 'flow' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L163
  2. unused-argument: Unused argument 'result' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L163
  3. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L163
  4. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L649
  5. unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/data_entry_flow.py#L653
  6. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/auth/providers/init.py#L121
  7. unused-argument: Unused argument 'refresh_token' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/auth/providers/init.py#L126
  8. unused-argument: Unused argument 'remote_ip' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/auth/providers/init.py#L126
  9. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/auth/providers/init.py#L125
  10. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L976
  11. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1060
  12. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1066
  13. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1073
  14. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1295
  15. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/entity.py#L1295
  16. unused-argument: Unused argument 'options' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/schema_config_entry_flow.py#L331
  17. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/schema_config_entry_flow.py#L331
  18. unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/schema_config_entry_flow.py#L341
  19. unused-argument: Unused argument 'options' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/helpers/schema_config_entry_flow.py#L341
  20. unused-argument: Unused argument 'args' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L83
  21. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L83
  22. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L83
  23. unused-argument: Unused argument 'args' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L86
  24. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L86
  25. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/wrappers.py#L86
  26. unused-argument: Unused argument 'services' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/usage.py#L45
  27. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/bluetooth/usage.py#L45
  28. unused-argument: Unused argument 'prefix' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/frontend/init.py#L552
  29. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/frontend/init.py#L552
  30. unused-argument: Unused argument 'language' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/conversation/agent.py#L50
  31. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/conversation/agent.py#L50
  32. unused-argument: Unused argument 'language' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/conversation/agent.py#L53
  33. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/conversation/agent.py#L53
  34. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/point/init.py#L299
  35. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L366
  36. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L366
  37. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L375
  38. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L375
  39. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L382
  40. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L382
  41. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L391
  42. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L391
  43. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L400
  44. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L400
  45. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L409
  46. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cover/init.py#L409
  47. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zeroconf/models.py#L14
  48. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zeroconf/models.py#L23
  49. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cloud/client.py#L185
  50. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cloud/client.py#L188
  51. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cloud/client.py#L191
  52. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zwave_js/entity.py#L70
  53. unused-argument: Unused argument 'input_obj' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/lcn/init.py#L308
  54. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/lcn/init.py#L308
  55. unused-argument: Unused argument 'unlatch' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/nuki/lock.py#L181
  56. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/nuki/lock.py#L181
  57. unused-argument: Unused argument 'data' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/broadlink/entity.py#L42
  58. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/broadlink/entity.py#L42
  59. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/weather/init.py#L1159
  60. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/weather/init.py#L1163
  61. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/weather/init.py#L1167
  62. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/itunes/media_player.py#L468
  63. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/mqtt/mixins.py#L1067
  64. unused-argument: Unused argument 'config' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/mqtt/mixins.py#L1200
  65. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/mqtt/mixins.py#L1200
  66. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/homekit/accessories.py#L601
  67. unused-argument: Unused argument 'data' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/nibe_heatpump/init.py#L335
  68. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/nibe_heatpump/init.py#L335
  69. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/rainmachine/init.py#L580
  70. unused-argument: Unused argument 'group_uuid' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L196
  71. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L196
  72. unused-argument: Unused argument 'group_uuid' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L204
  73. unused-argument: Unused argument 'cast_status' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L204
  74. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/helpers.py#L204
  75. unused-argument: Unused argument 'discover' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/media_player.py#L252
  76. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/cast/media_player.py#L252
  77. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/guardian/init.py#L370
  78. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/simplisafe/init.py#L838
  79. unused-argument: Unused argument 'event' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/simplisafe/init.py#L842
  80. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/simplisafe/init.py#L842
  81. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/switchbot/entity.py#L68
  82. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/hue/v2/entity.py#L141
  83. unused-argument: Unused argument 'external_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/geonetnz_volcano/init.py#L201
  84. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/geonetnz_volcano/init.py#L201
  85. unused-argument: Unused argument 'event' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/rfxtrx/init.py#L540
  86. unused-argument: Unused argument 'device_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/rfxtrx/init.py#L540
  87. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/rfxtrx/init.py#L539
  88. unused-argument: Unused argument 'packet' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/enocean/device.py#L32
  89. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/enocean/device.py#L32
  90. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/opengarage/entity.py#L36
  91. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/trafikverket_camera/entity.py#L50
  92. unused-argument: Unused argument 'device' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/wiffi/init.py#L185
  93. unused-argument: Unused argument 'metric' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/wiffi/init.py#L185
  94. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/wiffi/init.py#L185
  95. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L161
  96. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L164
  97. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L178
  98. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L185
  99. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L192
  100. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L195
  101. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/alexa/capabilities.py#L205
  102. unused-argument: Unused argument 'element' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/elkm1/init.py#L507
  103. unused-argument: Unused argument 'changeset' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/elkm1/init.py#L507
  104. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/elkm1/init.py#L507
  105. unused-argument: Unused argument 'entity_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/group/init.py#L554
  106. unused-argument: Unused argument 'new_state' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/group/init.py#L555
  107. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/group/init.py#L552
  108. unused-argument: Unused argument 'atv' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/apple_tv/init.py#L139
  109. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/apple_tv/init.py#L139
  110. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/apple_tv/init.py#L142
  111. unused-argument: Unused argument 'element' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/upb/init.py#L96
  112. unused-argument: Unused argument 'changeset' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/upb/init.py#L96
  113. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/upb/init.py#L96
  114. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/imap/coordinator.py#L214
  115. unused-argument: Unused argument 'attr_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L108
  116. unused-argument: Unused argument 'attr_name' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L108
  117. unused-argument: Unused argument 'value' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L108
  118. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L108
  119. unused-argument: Unused argument 'last_state' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L224
  120. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L224
  121. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/entity.py#L342
  122. unused-argument: Unused argument 'attr_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/fan.py#L128
  123. unused-argument: Unused argument 'attr_name' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/fan.py#L128
  124. unused-argument: Unused argument 'value' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/fan.py#L128
  125. no-self-use: Method could be a function https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/fan.py#L128
  126. 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
  127. unused-argument: Unused argument 'zone_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L220
  128. 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
  129. 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
  130. unused-argument: Unused argument 'starting_zone_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L247
  131. unused-argument: Unused argument 'max_zone_ids' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L247
  132. 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
  133. unused-argument: Unused argument 'zone_status_mask' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/security.py#L247
  134. 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
  135. unused-argument: Unused argument 'tsn' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L406
  136. unused-argument: Unused argument 'command_id' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L406
  137. unused-argument: Unused argument 'args' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L406
  138. 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
  139. unused-argument: Unused argument 'args' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L420
  140. unused-argument: Unused argument 'kwargs' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L420
  141. 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
  142. 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
  143. unused-argument: Unused argument 'zigpy_device' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L582
  144. 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
  145. unused-argument: Unused argument 'duration' https://github.com/home-assistant/core/blob/1c10091d620218044e858f083c4400645d2ad74b/homeassistant/components/zha/core/cluster_handlers/init.py#L586
  146. 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:

  1. no-self-use: Method could be a function https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/_camera_vidcapture.py#L84
  2. no-self-use: Method could be a function https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/_camera_vidcapture.py#L87
  3. no-self-use: Method could be a function https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/_camera_vidcapture.py#L90
  4. suppressed-message: Suppressed 'unused-argument' (from line 44) https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/_camera_vidcapture.py#L87
  5. unused-argument: Unused argument 'args' https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/sprite.py#L170
  6. unused-argument: Unused argument 'kwargs' https://github.com/pygame/pygame/blob/d6d5d835c0735e01dacc08d8ee2565f17f3b84f7/src_py/sprite.py#L170
  7. 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:

  1. 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:

  1. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/volpiano.py#L467
  2. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/tinyNotation.py#L284
  3. unused-argument: Unused argument 'tokenString' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/tinyNotation.py#L412
  4. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/tinyNotation.py#L412
  5. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/note.py#L880
  6. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L409
  7. unused-argument: Unused argument 'raw' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L432
  8. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L432
  9. unused-argument: Unused argument 'force' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L440
  10. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L440
  11. unused-argument: Unused argument 'simulate' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L523
  12. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L523
  13. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/configure.py#L1353
  14. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/expressions.py#L468
  15. unused-argument: Unused argument 'compress' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L156
  16. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L156
  17. unused-argument: Unused argument 'solution' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L173
  18. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L173
  19. unused-argument: Unused argument 'sStream' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L180
  20. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L180
  21. unused-argument: Unused argument 'subStream' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L187
  22. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/analysis/discrete.py#L187
  23. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/musedata/translate.py#L479
  24. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/stream/filters.py#L74
  25. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L18
  26. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L100
  27. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L240
  28. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L252
  29. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L291
  30. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L297
  31. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L310
  32. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L316
  33. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L322
  34. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L328
  35. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L334
  36. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L340
  37. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L346
  38. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L352
  39. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L358
  40. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L364
  41. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L370
  42. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L376
  43. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L382
  44. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L385
  45. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L388
  46. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L391
  47. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L394
  48. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L401
  49. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L408
  50. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L415
  51. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L421
  52. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L428
  53. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L434
  54. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L441
  55. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L447
  56. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L453
  57. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L459
  58. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L466
  59. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L472
  60. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L478
  61. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L484
  62. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/humdrum/questions.py#L490
  63. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/romanText/clercqTemperley.py#L1136
  64. unused-argument: Unused argument 'e' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L272
  65. unused-argument: Unused argument 'thisChord' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L272
  66. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L272
  67. unused-argument: Unused argument 's' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L392
  68. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/hasher.py#L392
  69. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/alpha/analysis/fixer.py#L37
  70. unused-argument: Unused argument 'drawObj' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/capella/fromCapellaXML.py#L887
  71. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/capella/fromCapellaXML.py#L887
  72. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L25
  73. unused-argument: Unused argument 'includeClassLabel' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L31
  74. unused-argument: Unused argument 'includeId' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L31
  75. unused-argument: Unused argument 'lineBreak' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L31
  76. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/outputFormats.py#L31
  77. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/features/base.py#L237
  78. unused-argument: Unused argument 'subplot' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/primitives.py#L534
  79. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/primitives.py#L534
  80. unused-argument: Unused argument 'el' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/plot.py#L265
  81. unused-argument: Unused argument 'formatDict' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/plot.py#L266
  82. unused-argument: Unused argument 'values' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/plot.py#L264
  83. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/plot.py#L264
  84. unused-argument: Unused argument 'dataList' https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/axis.py#L280
  85. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/graph/axis.py#L280
  86. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/abcFormat/init.py#L199
  87. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/abcFormat/init.py#L206
  88. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/midi/init.py#L1668
  89. no-self-use: Method could be a function https://github.com/cuthbertLab/music21/blob/f457a2ba52ea3f978d805cd52fa101dfb0dd8577/music21/braille/test.py#L1169
  90. 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:

  1. unused-argument: Unused argument 'record' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/logging.py#L905
  2. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/logging.py#L913
  3. unused-argument: Unused argument 'when' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/logging.py#L916
  4. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/logging.py#L916
  5. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/capture.py#L231
  6. unused-argument: Unused argument 'testcase' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L213
  7. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L213
  8. unused-argument: Unused argument 'testcase' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L295
  9. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L295
  10. unused-argument: Unused argument 'testcase' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L298
  11. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L298
  12. unused-argument: Unused argument 'testcase' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L301
  13. unused-argument: Unused argument 'elapsed' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L301
  14. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/unittest.py#L301
  15. 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
  16. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/nodes.py#L321
  17. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/nodes.py#L324
  18. redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L144
  19. redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L178
  20. redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L382
  21. redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L625
  22. redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L808
  23. redundant-returns-doc: Redundant returns documentation https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/hookspec.py#L888
  24. no-self-use: Method could be a function https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L126
  25. 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
  26. unused-argument: Unused argument 'names' https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/assertion/init.py#L76
  27. 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:

  1. deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/skipping.py#L295
  2. 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
  3. deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L936
  4. deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L974
  5. deprecated-typing-alias: 'typing.Tuple' is deprecated, use 'tuple' instead https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/python_api.py#L1000
  6. 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
  7. 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
  8. 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
  9. no-member: Instance of 'TextIOWrapper' has no 'mode' member https://github.com/pytest-dev/pytest/blob/6c2feb75d2c4bb01aa145f8b85f7fb09fe4133cf/src/_pytest/config/init.py#L432
  10. 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:

  1. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/apps/config.py#L271
  2. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/mail/backends/base.py#L21
  3. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/mail/backends/base.py#L40
  4. unused-argument: Unused argument 'parser' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/management/base.py#L370
  5. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/management/base.py#L370
  6. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/serializers/base.py#L158
  7. unused-argument: Unused argument 'obj' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/serializers/base.py#L172
  8. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/serializers/base.py#L172
  9. unused-argument: Unused argument 'input_data' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
  10. unused-argument: Unused argument 'META' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
  11. unused-argument: Unused argument 'content_length' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
  12. unused-argument: Unused argument 'boundary' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
  13. unused-argument: Unused argument 'encoding' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L84
  14. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L83
  15. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L145
  16. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/files/uploadhandler.py#L152
  17. unused-argument: Unused argument 'kwargs' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/cache/backends/base.py#L384
  18. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/cache/backends/base.py#L384
  19. unused-argument: Unused argument 'kwargs' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/cache/backends/base.py#L388
  20. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/core/cache/backends/base.py#L388
  21. unused-argument: Unused argument 'context' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/template/base.py#L947
  22. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/template/base.py#L947
  23. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/template/loaders/base.py#L46
  24. unused-argument: Unused argument 'item' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/test/runner.py#L138
  25. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/test/runner.py#L138
  26. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/test/testcases.py#L312
  27. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/test/utils.py#L955
  28. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/http/response.py#L340
  29. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/models/base.py#L1255
  30. unused-argument: Unused argument 'value' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/models/fields/init.py#L2802
  31. unused-argument: Unused argument 'model_instance' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/models/fields/init.py#L2802
  32. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/models/fields/init.py#L2802
  33. unused-argument: Unused argument 'old_table' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L23
  34. unused-argument: Unused argument 'new_table' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L23
  35. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L23
  36. unused-argument: Unused argument 'table' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L29
  37. unused-argument: Unused argument 'old_column' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L29
  38. unused-argument: Unused argument 'new_column' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L29
  39. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/ddl_references.py#L29
  40. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/base.py#L544
  41. unused-argument: Unused argument 'table_names' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/base.py#L551
  42. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/base.py#L551
  43. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/base.py#L650
  44. unused-argument: Unused argument 'fields' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/operations.py#L365
  45. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/operations.py#L365
  46. unused-argument: Unused argument 'expression' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/operations.py#L655
  47. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/db/backends/base/operations.py#L655
  48. unused-argument: Unused argument 'handler' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L161
  49. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L161
  50. unused-argument: Unused argument 'handler' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L174
  51. unused-argument: Unused argument 'item' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L174
  52. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/utils/feedgenerator.py#L174
  53. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/forms/forms.py#L356
  54. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/forms/formsets.py#L464
  55. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/contrib/sessions/backends/file.py#L193
  56. no-self-use: Method could be a function https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/contrib/staticfiles/handlers.py#L24
  57. unused-argument: Unused argument 'schema_editor' https://github.com/django/django/blob/fe19b33e2f76045617067dd5123041ae4d3a91ee/django/contrib/postgres/indexes.py#L38
  58. 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:

  1. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/indexing/test_loc.py#L141
  2. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/indexing/test_loc.py#L432
  3. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/indexing/multiindex/test_partial.py#L39
  4. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/frame/methods/test_replace.py#L908
  5. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/dtypes/test_inference.py#L1198
  6. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/io/test_sql.py#L2923
  7. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/io/parser/test_textreader.py#L179
  8. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/io/parser/test_textreader.py#L183
  9. unused-argument: Unused argument 'args' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/base/test_constructors.py#L57
  10. unused-argument: Unused argument 'kwargs' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/base/test_constructors.py#L57
  11. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/tests/base/test_constructors.py#L57
  12. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/arrays/datetimelike.py#L437
  13. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/internals/managers.py#L1903
  14. unused-argument: Unused argument 'left_join_keys' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L814
  15. unused-argument: Unused argument 'right_join_keys' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L814
  16. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L813
  17. unused-argument: Unused argument 'left_join_keys' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L819
  18. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/core/reshape/merge.py#L819
  19. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/io/pytables.py#L2226
  20. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/io/pytables.py#L2776
  21. no-self-use: Method could be a function https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/io/pytables.py#L2779
  22. unused-argument: Unused argument 'where' https://github.com/pandas-dev/pandas/blob/79067a76adc448d17210f2cf4a858b0eb853be4c/pandas/io/pytables.py#L2801
  23. 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

github-actions[bot] avatar Sep 13 '23 20:09 github-actions[bot]