Get a first classmethod extraction working

This commit is contained in:
Dave Halter committed 2020-02-23 00:40:31 +01:00
1 parent b7be5a4fe2
commit a7110a4e08
2 files changed
+22 -6

No files matched your search

+16
View File
@@ -61,3 +61,19 @@ class X:
def f(x):
#? 11 text {'new_name': 'ab'}
return ab()
# -------------------------------------------------- in-classmethod-1
class X:
@classmethod
def f(x):
#? 16 text {'new_name': 'ab'}
return 25
# ++++++++++++++++++++++++++++++++++++++++++++++++++
class X:
@classmethod
def ab():
return 25
@classmethod
def f(x):
#? 16 text {'new_name': 'ab'}
return x.ab()