U nfg @sddlmZddlZddlmZmZddlmZm Z ddl m Z ddlm Z esTe Z dZGd d d eZe d e d Gd ddedZGdddeZe de d GdddedZdS)) annotationsN) TYPE_CHECKINGAny)Literal deprecated)_config)PydanticDeprecatedSince20) BaseConfigExtrac@seZdZdddddZdS)_ConfigMetaclassstrritemreturnc Cs^ztj|}ttjt|WStk rX}ztd|jd||W5d}~XYnXdS)Nz type object 'z' has no attribute ) rZconfig_defaultswarningswarnDEPRECATION_MESSAGEDeprecationWarningKeyErrorAttributeError__name__selfrobjexcrH/opt/hc_python/lib/python3.8/site-packages/pydantic/deprecated/config.py __getattr__s  z_ConfigMetaclass.__getattr__N)r __module__ __qualname__rrrrrr sr z@BaseConfig is deprecated. Use the `pydantic.ConfigDict` instead.)categorycs<eZdZdZdddfdd Zdddfd d ZZS) r zThis class is only retained for backwards compatibility. !!! Warning "Deprecated" BaseConfig is deprecated. Use the [`pydantic.ConfigDict`][pydantic.ConfigDict] instead. r rrc sz t|}ttjt|WStk r~}z@ztt ||WWY(Stk rltt ||YnXW5d}~XYnXdSN) super__getattribute__rrrrrrgetattrtyper r __class__rrr%s zBaseConfig.__getattr__None)kwargsrc sttjttjf|Sr")rrrrrr#__init_subclass__)clsr*r'rrr+1szBaseConfig.__init_subclass__)rrr __doc__rr+ __classcell__rrr'rr s r ) metaclasscs$eZdZdddfdd ZZS) _ExtraMetar r)_ExtraMeta__namercs$|dkrtjdtddt|S)N>allowforbidignorezX`pydantic.config.Extra` is deprecated, use literal values instead (e.g. `extra='allow'`)r) stacklevel)rrrr#r$)rr1r'rrr$7sz_ExtraMeta.__getattribute__)rrr r$r.rrr'rr06sr0zFExtra is deprecated. Use literal values instead (e.g. `extra='allow'`)c@s2eZdZUdZded<dZded<dZded<dS)r r2zLiteral['allow']r4zLiteral['ignore']r3zLiteral['forbid']N)rrr r2__annotations__r4r3rrrrr Bs   r ) __future__rZ _annotationsrtypingrrtyping_extensionsrr _internalrr r__all__r&r r r0r rrrrs"