mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Make sure classmethod param completion works better for the first param
This commit is contained in:
@@ -318,13 +318,28 @@ class F():
|
||||
#?
|
||||
return param
|
||||
|
||||
@classmethod
|
||||
def my_method_without_call(cls, param):
|
||||
#?
|
||||
cls.my_variable
|
||||
#? ['my_method', 'my_method_without_call']
|
||||
cls.my_meth
|
||||
#?
|
||||
return param
|
||||
|
||||
@classmethod
|
||||
def my_method(cls, param):
|
||||
#? []
|
||||
param.my_method
|
||||
|
||||
#?
|
||||
cls.my_variable
|
||||
#? ['my_method', 'my_method_without_call']
|
||||
cls.my_meth
|
||||
#?
|
||||
return param
|
||||
|
||||
#? str()
|
||||
F.my_func('')
|
||||
#? str()
|
||||
F.my_method('')
|
||||
|
||||
# -----------------
|
||||
# Unknown metaclass
|
||||
|
||||
Reference in New Issue
Block a user