§ ó÷;iIãó,—dZddlmZddlZddlmZmZmZddlm Z ddl m Z dZ ej die j¤ŽGd „d ¦«¦«Zej die j¤ŽGd „d ¦«¦«Zej die j¤ŽGd „d¦«¦«ZdS)z!Support for alias configurations.é)Ú annotationsN)ÚAnyÚCallableÚLiteral)ÚPydanticUndefinedé)Ú_internal_dataclass)ÚAliasGeneratorÚ AliasPathÚ AliasChoicescó6—eZdZUdZded<dd „Zdd „Zdd„ZdS)r a!!! abstract "Usage Documentation" [`AliasPath` and `AliasChoices`](../concepts/alias.md#aliaspath-and-aliaschoices) A data class used by `validation_alias` as a convenience to create aliases. Attributes: path: A list of string or integer aliases. zlist[int | str]ÚpathÚ first_argÚstrÚargsú str | intÚreturnÚNonecó6—|gt|¦«z|_dS©N)Úlistr)Úselfrrs úDC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\pydantic/aliases.pyÚ__init__zAliasPath.__init__s€ØK¥$ t¡*¤*Ñ,ˆŒ ˆ ˆ óúlist[str | int]có—|jS)zvConverts arguments to a list of string or integer aliases. Returns: The list of aliases. )r)rs rÚconvert_to_aliaseszAliasPath.convert_to_aliasess €ð ŒyÐrÚdÚdictrcó¸—|}|jD]O}t|t¦«r tcS ||}Œ*#tt t f$r tcYcSwxYw|S)z³Searches a dictionary for the path specified by the alias. Returns: The value at the specified path, or `PydanticUndefined` if the path is not found. )rÚ isinstancerrÚKeyErrorÚ IndexErrorÚ TypeError)rrÚvÚks rÚsearch_dict_for_pathzAliasPath.search_dict_for_path's€ð ˆØ”ð )ð )ˆAݘ!SÑ!Ô!ð )å(Ð(Ð(Ð(ð )Øa”DøÝj­)Ð4ð )ð )ð )Ý(Ð(Ð(Ð(Ð(Ð(ð )øøøàˆs«4´AÁAN)rrrrrr)rr)rr rr)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú__annotations__rrr(©rrr r sj€€€€€€ðððÐÐÑð-ð-ð-ð-ððððððððððrr có.—eZdZUdZded<d d„Zd d „Zd S)r a!!! abstract "Usage Documentation" [`AliasPath` and `AliasChoices`](../concepts/alias.md#aliaspath-and-aliaschoices) A data class used by `validation_alias` as a convenience to create aliases. Attributes: choices: A list containing a string or `AliasPath`. zlist[str | AliasPath]ÚchoicesÚ first_choiceústr | AliasPathrrcó6—|gt|¦«z|_dSr)rr0)rr1r0s rrzAliasChoices.__init__Fs€Ø$~­¨W© ¬ Ñ5ˆŒ ˆ ˆ rúlist[list[str | int]]cóÄ—g}|jD]U}t|t¦«r(| | ¦«¦«Œ?| |g¦«ŒV|S)z‡Converts arguments to a list of lists containing string or integer aliases. Returns: The list of aliases. )r0r"r Úappendr)rÚaliasesÚcs rrzAliasChoices.convert_to_aliasesIsi€ð *,ˆØ”ð $ð $ˆAݘ!YÑ'Ô'ð $Ø—’˜q×3Ò3Ñ5Ô5Ñ6Ô6Ð6Ð6à—’ ˜sÑ#Ô#Ð#Ð#؈rN)r1r2r0r2rr)rr4)r)r*r+r,r-rrr.rrr r 9sV€€€€€€ððð#Ð"Ð"Ñ"ð6ð6ð6ð6ð ð ð ð ð ð rr cóN—eZdZUdZdZded<dZded<dZded<dd„Zdd„Z dS)r aÿ!!! abstract "Usage Documentation" [Using an `AliasGenerator`](../concepts/alias.md#using-an-aliasgenerator) A data class used by `alias_generator` as a convenience to create various aliases. Attributes: alias: A callable that takes a field name and returns an alias for it. validation_alias: A callable that takes a field name and returns a validation alias for it. serialization_alias: A callable that takes a field name and returns a serialization alias for it. NzCallable[[str], str] | NoneÚaliasz6Callable[[str], str | AliasPath | AliasChoices] | NoneÚvalidation_aliasÚserialization_aliasÚ alias_kindú;Literal['alias', 'validation_alias', 'serialization_alias']Ú allowed_typesúr?r@rArrrB)rArrrH) r)r*r+r,r:r-r;r<rGrJr.rrr r Xs€€€€€€ð ð ð*.€EÐ-Ð-Ð-Ñ-ØOSÐÐSÐSÐSÑSØ7;ÐÐ;Ð;Ð;Ñ;ððððð( <ð <ð <ð <ð <ð rSs_ðØ'Ð'à"Ð"Ð"Ð"Ð"Ð"àÐÐÐØ)Ð)Ð)Ð)Ð)Ð)Ð)Ð)Ð)Ð)à+Ð+Ð+Ð+Ð+Ð+à*Ð*Ð*Ð*Ð*Ð*à 9€ð€ÔÐ8Ð8Ð,Ô7Ð8Ð8ð&ð&ð&ð&ð&ñ&ô&ñ9Ô8ð&ðR€ÔÐ8Ð8Ð,Ô7Ð8Ð8ðððððñôñ9Ô8ðð<€ÔÐ8Ð8Ð,Ô7Ð8Ð8ð.<ð.<ð.<ð.<ð.<ñ.<ô.<ñ9Ô8ð.<ð.<ð.