← Back
Editing: decorator.cpython-311.pyc
� p�{c� � �6 � d Z ddlmZmZ G d� de� � ZdS )z{ Decorators are not really values, however we need some wrappers to improve docstrings and other things around decorators. � )�ValueWrapper�ValueSetc �0 � � e Zd Z� fd�Zd� Zd� Zd� Z� xZS )� Decorateec �X �� t � � � |� � || _ d S �N)�super�__init__�_original_value)�self� wrapped_value�original_value� __class__s ��@/usr/lib/python3/dist-packages/jedi/inference/value/decorator.pyr zDecoratee.__init__ s) �� � ������'�'�'�-����� c �4 � | j � � � S r )r � py__doc__)r s r r zDecoratee.py__doc__ s � ��#�-�-�/�/�/r c �l � � t � fd�� j � ||� � D � � � � S )Nc 3 �B �K � | ]}t |�j � � V � �d S r )r r )�.0�vr s �r � <genexpr>z&Decoratee.py__get__.<locals>.<genexpr> sD �� � � � � �� �a��-�.�.� � � � � � r )r �_wrapped_value� py__get__)r �instance�class_values ` r r zDecoratee.py__get__ sN �� �� � � � ��(�2�2�8�[�I�I� � � � � � r c � � | j � � � }|r|S | j � d� � s| j � � � S g S )N�__get__)r �get_signatures�py__getattribute__r )r � signaturess r r zDecoratee.get_signatures sY � ��(�7�7�9�9� �� ��� �"�5�5�i�@�@� 9��'�6�6�8�8�8�� r )�__name__� __module__�__qualname__r r r r � __classcell__)r s @r r r se �� � � � � �.� .� .� .� .�0� 0� 0� � � �� � � � � � r r N)�__doc__�jedi.inference.base_valuer r r � r r �<module>r) s] ��� � =� <� <� <� <� <� <� <�� � � � �� � � � � r
Save File
Cancel