mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
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)
|
||||
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''')
|
||||
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user