Skip to content

Commit

Permalink
Added example for bad-staticmethod-argument (#6002)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
  • Loading branch information
3 people authored Mar 28, 2022
1 parent 19dc9a6 commit 1b85ca5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/data/messages/b/bad-staticmethod-argument/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Wolf:
@staticmethod
def eat(self): # [bad-staticmethod-argument]
pass
4 changes: 4 additions & 0 deletions doc/data/messages/b/bad-staticmethod-argument/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Wolf:
@staticmethod
def eat(sheep):
pass

0 comments on commit 1b85ca5

Please sign in to comment.