HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/pydantic/deprecated/__pycache__/config.cpython-310.pyc
o

|��gg
�@s�ddlmZddlZddlmZmZddlmZm	Z	ddl
mZddlmZes*eZ
dZGd	d
�d
e�Ze	ded�Gd
d�ded��ZGdd�de�Ze	ded�Gdd�ded��ZdS)�)�annotationsN)�
TYPE_CHECKING�Any)�Literal�
deprecated�)�_config)�PydanticDeprecatedSince20)�
BaseConfig�Extrac@seZdZddd�ZdS)	�_ConfigMetaclass�item�str�returnrc
CsPztj|}t�tjt�|WSty'}ztd|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
rrr)r�
__module__�__qualname__rrrrrrsrz@BaseConfig is deprecated. Use the `pydantic.ConfigDict` instead.)�categorycs0eZdZdZd�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
rrrcstzt��|�}t�tjt�|WSty9}zztt	|�|�WWYd}~Sty4tt
|��|�wd}~ww)N)�super�__getattribute__rrrrrr�getattr�typerr��	__class__rrr%s���zBaseConfig.__getattr__�kwargs�Nonecs t�tjt�t�jdi|��S)Nr)rrrrrr#�__init_subclass__)�clsr)r'rrr+1szBaseConfig.__init_subclass__r)r)rrr*)rr r!�__doc__rr+�
__classcell__rrr'rr
sr
)�	metaclasscseZdZd�fdd�Z�ZS)�
_ExtraMeta�_ExtraMeta__namerrrcs$|dvrtjdtdd�t��|�S)N>�allow�forbid�ignorezX`pydantic.config.Extra` is deprecated, use literal values instead (e.g. `extra='allow'`)r)�
stacklevel)rrrr#r$)rr1r'rrr$7s�z_ExtraMeta.__getattribute__)r1rrr)rr r!r$r.rrr'rr06sr0zFExtra is deprecated. Use literal values instead (e.g. `extra='allow'`)c@s2eZdZUdZded<dZded<dZded<dS)rr2zLiteral['allow']r4zLiteral['ignore']r3zLiteral['forbid']N)rr r!r2�__annotations__r4r3rrrrrBs
r)�
__future__r�_annotationsr�typingrr�typing_extensionsrr�	_internalrr	r�__all__r&rr
r0rrrrr�<module>s"

�