OwlCyberSecurity - MANAGER
Edit File: _exceptions.cpython-38.pyc
U �p�]� � @ s� d Z ddlmZ dd� Zdd� ZG dd� de�ZeG d d � d e��ZeG dd� de��ZeG d d� de��Z eG dd� de ��Z eG dd� de ��Zed�G dd� de��Z ed�G dd� dee��ZeG dd� de��ZdS )z� Various richly-typed exceptions, that also help us deal with string formatting in python where it's easier. By putting the formatting in `__str__`, we also avoid paying the cost for users who silence the exceptions. � )� set_modulec C s t | �dkr| d S | S d S )N� r )�len)�tup� r �8/usr/lib/python3/dist-packages/numpy/core/_exceptions.py� _unpack_tuple s r c C s6 t | t�st�| jj| _| jj| _t| jj�| � | S )aG A decorator that makes an exception class look like its base. We use this to hide subclasses that are implementation details - the user should catch the base type, which is what the traceback will show them. Classes decorated with this decorator are subject to removal without a deprecation warning. )� issubclass� Exception�AssertionError�__base__�__name__�__qualname__r � __module__)�clsr r r �_display_as_base s r c @ s e Zd ZdZdd� ZdS )�UFuncTypeErrorz% Base class for all ufunc exceptions c C s || _ d S �N)�ufunc)�selfr r r r �__init__$ s zUFuncTypeError.__init__N)r r r �__doc__r r r r r r "