forked from VimPlug/jedi
Fix the of a signature with a decorator
This commit is contained in:
@@ -19,3 +19,7 @@ class Decoratee(ValueWrapper):
|
|||||||
Decoratee(v, self._original_value)
|
Decoratee(v, self._original_value)
|
||||||
for v in self._wrapped_value.py__get__(instance, class_value)
|
for v in self._wrapped_value.py__get__(instance, class_value)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def name(self):
|
||||||
|
return self._original_value.name
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ def test_method_decorator(Script):
|
|||||||
Foo().check_user''')
|
Foo().check_user''')
|
||||||
|
|
||||||
d, = Script(code).infer()
|
d, = Script(code).infer()
|
||||||
assert d.docstring() == 'check_user(f)\n\nNice docstring'
|
assert d.docstring() == 'check_user(self, f)\n\nNice docstring'
|
||||||
|
|
||||||
|
|
||||||
def test_partial(Script):
|
def test_partial(Script):
|
||||||
|
|||||||
Reference in New Issue
Block a user