Format: application/x-python-code
1 o
2
3 �h� � @ s( d Z ddlmZmZ G dd� de�ZdS )z{
4 Decorators are not really values, however we need some wrappers to improve
5 docstrings and other things around decorators.
6 � )�ValueWrapper�ValueSetc s4 e Zd Z� fdd�Zdd� Zdd� Zdd� Z� ZS ) � Decorateec s t � �|� || _d S �N)�super�__init__�_original_value)�selfZ
7 wrapped_value�original_value�� __class__� �Tc:\Users\shubh\Videos\agent\nova\Lib\site-packages\jedi/inference/value/decorator.pyr
8 s
9 zDecoratee.__init__c C s
10 | j �� S r )r � py__doc__�r r
11 r
12 r r s
13 zDecoratee.py__doc__c s t � fdd�� j�||�D ��S )Nc 3 s � | ] }t |� j�V qd S r )r r )�.0�vr r
14 r � <genexpr> s
15 �
16 �
17 �z&Decoratee.py__get__.<locals>.<genexpr>)r �_wrapped_value� py__get__)r �instanceZclass_valuer
18 r r r s �zDecoratee.py__get__c C s, | j �� }|r |S | j �d�s| j�� S g S )N�__get__)r �get_signaturesZpy__getattribute__r )r Z
19 signaturesr
20 r
21 r r s
22
23 zDecoratee.get_signatures)�__name__�
24 __module__�__qualname__r r r r �
25 __classcell__r
26 r
27 r r r s
28 r N)�__doc__Zjedi.inference.base_valuer r r r
29 r
30 r
31 r �<module> s