Fix the of a signature with a decorator

This commit is contained in:
Dave Halter
2020-06-27 00:32:17 +02:00
parent 9a54e583e7
commit bc23458164
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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):