Skip to content

Commit 1b85ca5

Browse files
matusvalosprytnykPierre-Sassoulas
authored
Added example for bad-staticmethod-argument (#6002)
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent 19dc9a6 commit 1b85ca5

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Wolf:
2+
@staticmethod
3+
def eat(self): # [bad-staticmethod-argument]
4+
pass
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Wolf:
2+
@staticmethod
3+
def eat(sheep):
4+
pass

0 commit comments

Comments
 (0)