File: //usr/local/lib/python3.10/dist-packages/pydantic/deprecated/__pycache__/config.cpython-310.pyc
o
|��gg
� @ s� d dl mZ d dlZd dlmZmZ d dlmZm Z ddl
mZ ddlmZ es*eZ
dZG d d
� d
e�Ze ded�G d
d� ded��ZG dd� de�Ze ded�G dd� ded��ZdS )� )�annotationsN)�
TYPE_CHECKING�Any)�Literal�
deprecated� )�_config)�PydanticDeprecatedSince20)�
BaseConfig�Extrac @ s e Zd Zddd�ZdS ) �_ConfigMetaclass�item�str�returnr c
C sP zt j| }t�t jt� |W S ty' } ztd| j� d|� ��|�d }~ww )Nz
type object 'z' has no attribute ) r �config_defaults�warnings�warn�DEPRECATION_MESSAGE�DeprecationWarning�KeyError�AttributeError�__name__��selfr
�obj�exc� r �E/usr/local/lib/python3.10/dist-packages/pydantic/deprecated/config.py�__getattr__ s
��z_ConfigMetaclass.__getattr__N�r
r r r )r �
__module__�__qualname__r r r r r r s r z@BaseConfig is deprecated. Use the `pydantic.ConfigDict` instead.)�categoryc s0 e Zd ZdZd� fdd�Zd
� fd
d�Z� ZS )r
z�This class is only retained for backwards compatibility.
!!! Warning "Deprecated"
BaseConfig is deprecated. Use the [`pydantic.ConfigDict`][pydantic.ConfigDict] instead.
r
r r r c st zt � �|�}t�tjt� |W S ty9 } zztt | �|�W W Y d }~S ty4 tt
|��|�w d }~ww )N)�super�__getattribute__r r r r r r �getattr�typer r �� __class__r r r % s ���zBaseConfig.__getattr__�kwargs�Nonec s t �tjt� t� jdi |��S )Nr )r r r r r r# �__init_subclass__)�clsr) r'