[pylint] Don't recommend decorating staticmethods with @singledispatch (PLE1519, PLE1520) (#10637)

Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
Aleksei Latyshev 2024-04-02 18:47:31 +02:00 committed by GitHub
parent b90e6df5cc
commit 0de23760ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 42 deletions

View file

@ -17,7 +17,7 @@ class Board:
def move(self, position):
pass
@singledispatchmethod # [singledispatchmethod-function]
@singledispatchmethod # Ok
@staticmethod
def do(position):
pass