AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/exceptions.cpython-311.pyc |
� �܋f!3 � � � d Z ddlmZ ddlmZ ddlmZmZ ddlm Z erddlm Z mZmZm Z ddlmZ dZ G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d e� � Z G d!� d"e� � Z G d#� d$e� � Z G d%� d&e� � Z G d'� d(e� � Z! G d)� d*e� � Z" G d+� d,e� � Z# G d-� d.e� � Z$ G d/� d0e� � Z% G d1� d2e� � Z& G d3� d4e&� � Z'e j( Z)e j* Z+e j, Z-eZ.eZ/eZ0eZ1d5S )6z<This module contains exceptions used in the astroid library.� )�annotations)�Sequence)� TYPE_CHECKING�Any)�util)� arguments�bases�nodes�objects)�InferenceContext)�AstroidBuildingError�AstroidBuildingException�AstroidError�AstroidImportError�AstroidIndexError�AstroidSyntaxError�AstroidTypeError�AstroidValueError�AttributeInferenceError�BinaryOperationError�DuplicateBasesError�InconsistentMroError�InferenceError�InferenceOverwriteError�MroError�NameInferenceError� NoDefault� NotFoundError�OperationError�ParentMissingError�ResolveError�StatementMissing�SuperArgumentTypeError� SuperError�TooManyLevelsError�UnaryOperationError�UnresolvableName�UseInferenceDefaultc �. � � e Zd ZdZdd� fd � Zd d �Z� xZS )r an Base exception class for all astroid related exceptions. AstroidError and its subclasses are structured, intended to hold objects representing state when the exception is thrown. Field values are passed to the constructor as keyword-only arguments. Each subclass has its own set of standard fields, but use your best judgment to decide whether a specific exception instance needs more or fewer fields for debugging. Field values may be used to lazily generate the error message: self.message.format() will be called with the field names and values supplied as keyword arguments. � �message�str�kwsr �return�Nonec � �� t � � � |� � || _ |� � � D ]\ }}t | ||� � �d S �N)�super�__init__r+ �items�setattr)�selfr+ r- �key�value� __class__s ��c/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/exceptions.pyr3 zAstroidError.__init__@ s\ �� � ������!�!�!�����)�)�+�+� &� &�J�C���D�#�u�%�%�%�%� &� &� c �@ � | j j di t | � � ��S �N� )r+ �format�vars�r6 s r: �__str__zAstroidError.__str__F s# � �"�t�|�"�0�0�T�$�Z�Z�0�0�0r; )r* )r+ r, r- r r. r/ �r. r, ��__name__� __module__�__qualname__�__doc__r3 rB � __classcell__�r9 s @r: r r 2 s` �� � � � � �� �&� &� &� &� &� &� &�1� 1� 1� 1� 1� 1� 1� 1r; r c �4 � � e Zd ZdZ dd� fd� Z� xZS )r z�Exception class when we are unable to build an astroid representation. Standard attributes: modname: Name of the module that AST construction failed for. error: Exception raised during construction. �"Failed to import module {modname}.Nr+ r, �modname� str | None�error�Exception | None�source�path�cls�type | None� class_reprr- r r. r/ c � �� || _ || _ || _ || _ || _ || _ t � � j |fi |�� d S r1 )rM rO rQ rR rS rU r2 r3 ) r6 r+ rM rO rQ rR rS rU r- r9 s �r: r3 zAstroidBuildingError.__init__R sT �� � ����� ������ ����$���������(�(�C�(�(�(�(�(r; )rL NNNNNN)r+ r, rM rN rO rP rQ rN rR rN rS rT rU rN r- r r. r/ �rE rF rG rH r3 rI rJ s @r: r r J sc �� � � � � �� � <�"�"&�!���!%�)� )� )� )� )� )� )� )� )� )� )r; r c � � e Zd ZdZdS )r z@Exception class used when a module can't be imported by astroid.N�rE rF rG rH r>