Format: application/x-python-code
1 o
2
3 �h�
4 � @ s� d Z ddlZddlZddlZejjZejjdureejj7 Ze�d� e�
5 e���Z[dd� Zdd� Z
6 dd � ZG d
7 d� de�Zdd
8 � Zdd� ZG dd� d�ZdS )zC A universal module with functions / classes without dependencies. � Nz (?:\.[^{0}]+|[{0}]__init__\.py)$c � � fdd�}|S )Nc � t � | i |���S �N)�list��args�kwargs��func� �Jc:\Users\shubh\Videos\agent\nova\Lib\site-packages\jedi/inference/utils.py�wrapper � zto_list.<locals>.wrapperr �r
9 r
10 r r r �to_list � r c r )Nc r r )�tupler r r r r
11 r zto_tuple.<locals>.wrapperr r r r r �to_tuple r r c C s t dd� | D ��S )z5Turns a two dimensional array into a one dimensional.c s s � | ]
12 }|D ]}|V qqd S r r )�.0�types�typr r r � <genexpr> s � zunite.<locals>.<genexpr>)�set)�iterabler r r �unite s r c @ s e Zd ZdZdS )�UncaughtAttributeErrora�
13 Important, because `__getattr__` and `hasattr` catch AttributeErrors
14 implicitly. This is really evil (mainly because of `__getattr__`).
15 Therefore this class originally had to be derived from `BaseException`
16 instead of `Exception`. But because I removed relevant `hasattr` from
17 the code base, we can now switch back to `Exception`.
18
19 :param base: return values of sys.exc_info().
20 N)�__name__�
21 __module__�__qualname__�__doc__r r r r r s r c C s t t| ��S r )�property�reraise_uncaughtr r r r �
22 safe_property+ s r"