Get a first classmethod extraction working

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

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()