Get staticmethod working
This commit is contained in:
1 parent
a7110a4e08
commit
2061919b64
2 files changed
+27
-3
No files matched your search
@@ -77,3 +77,18 @@ class X:
|
||||
def f(x):
|
||||
#? 16 text {'new_name': 'ab'}
|
||||
return x.ab()
|
||||
# -------------------------------------------------- in-staticmethod-1
|
||||
class X(int):
|
||||
@staticmethod
|
||||
def f(x):
|
||||
#? 16 text {'new_name': 'ab'}
|
||||
return 25 | 3
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
def ab():
|
||||
return 25 | 3
|
||||
|
||||
class X(int):
|
||||
@staticmethod
|
||||
def f(x):
|
||||
#? 16 text {'new_name': 'ab'}
|
||||
return ab()
|
||||
Reference in new issue
Block a user