1
0
forked from VimPlug/jedi
Files
jedi-fork/jedi/inference/value/decorator.py
2020-04-11 02:11:52 +02:00

16 lines
445 B
Python

'''
Decorators are not really values, however we need some wrappers to improve
docstrings and other things around decorators.
'''
from jedi.inference.base_value import ValueWrapper
class Decoratee(ValueWrapper):
def __init__(self, wrapped_value, original_value):
super(Decoratee, self).__init__(wrapped_value)
self._original_value = original_value
def py__doc__(self):
return self._original_value.py__doc__()