← Back
Editing: utils.cpython-311.pyc
� p�{c� � �( � d Z ddlZddlZddlZej j Zej j �eej j z Z ej d� ej e� � � � � � Z[d� Zd� Z d� Z G d� de� � Zd � Zd � Z G d� d� � ZdS ) zC A universal module with functions / classes without dependencies. � Nz (?:\.[^{0}]+|[{0}]__init__\.py)$c � � � � fd�}|S )Nc �. �� t �| i |��� � S �N)�list��args�kwargs�funcs ��6/usr/lib/python3/dist-packages/jedi/inference/utils.py�wrapperzto_list.<locals>.wrapper s �� ��D�D�$�)�&�)�)�*�*�*� � �r r s ` r �to_listr s! �� �+� +� +� +� +��Nr c � � � � fd�}|S )Nc �. �� t �| i |��� � S r )�tupler s �r r zto_tuple.<locals>.wrapper s �� ��T�T�4�*�6�*�*�+�+�+r r r s ` r �to_tupler s! �� �,� ,� ,� ,� ,��Nr c �4 � t d� | D � � � � S )z5Turns a two dimensional array into a one dimensional.c 3 �$ K � | ]}|D ]}|V � ��d S r r )�.0�types�typs r � <genexpr>zunite.<locals>.<genexpr> s/ � � � �:�:�u�E�:�:�S�s�:�:�:�:�:�:�:r )�set)�iterables r �uniter s � ��:�:��:�:�:�:�:�:r c � � e Zd ZdZdS )�UncaughtAttributeErrora� Important, because `__getattr__` and `hasattr` catch AttributeErrors implicitly. This is really evil (mainly because of `__getattr__`). Therefore this class originally had to be derived from `BaseException` instead of `Exception`. But because I removed relevant `hasattr` from the code base, we can now switch back to `Exception`. :param base: return values of sys.exc_info(). N)�__name__� __module__�__qualname__�__doc__r r r r r s � � � � � �� � � r r c �: � t t | � � � � S r )�property�reraise_uncaught)r s r � safe_propertyr'