mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
Get staticmethod working
This commit is contained in:
@@ -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