Ë
    <jJ  ã                  ó~   — d Z ddlmZ ddlmZ ddlmZmZ ddlm	Z	 ddl
mZ ddlmZmZmZ 	 	 	 d
	 	 	 	 	 	 	 	 	 dd	„Zy)zdExperimental module exposing a function to generate a core schema that validates callable arguments.é    )Úannotations)ÚCallable)ÚAnyÚLiteral)Ú
CoreSchema)Ú
ConfigDict)Ú_configÚ_generate_schemaÚ_namespace_utilsNc                ó  — t        j                  t        j                  |«      t	        j
                  t	        j                  | «      ¬«      ¬«      }|dk(  r|j                  | |«      }n|j                  | |«      }|j                  |«      S )a§  Generate the schema for the arguments of a function.

    Args:
        func: The function to generate the schema for.
        schema_type: The type of schema to generate.
        parameters_callback: A callable that will be invoked for each parameter. The callback
            should take three required arguments: the index, the name and the type annotation
            (or [`Parameter.empty`][inspect.Parameter.empty] if not annotated) of the parameter.
            The callback can optionally return `'skip'`, so that the parameter gets excluded
            from the resulting schema.
        config: The configuration to use.

    Returns:
        The generated schema.
    )Únamespaces_tuple)Úns_resolverÚ	arguments)
r
   ÚGenerateSchemar	   ÚConfigWrapperr   Ú
NsResolverÚns_for_functionÚ_arguments_schemaÚ_arguments_v3_schemaÚclean_schema)ÚfuncÚschema_typeÚparameters_callbackÚconfigÚgenerate_schemaÚschemas         ú]/opt/lfcs-signon/.venv/lib/python3.12/site-packages/pydantic/experimental/arguments_schema.pyÚgenerate_arguments_schemar      s~   € ô* '×5Ñ5Ü×Ñ˜fÓ%Ü$×/Ñ/ÔAQ×AaÑAaÐbfÓAgÔhô€Oð
 kÒ!Ø ×2Ñ2°4Ð9LÓM‰à ×5Ñ5°dÐ<OÓPˆØ×'Ñ'¨Ó/Ð/ó    )zarguments-v3NN)
r   zCallable[..., Any]r   z$Literal['arguments', 'arguments-v3']r   z8Callable[[int, str, Any], Literal['skip'] | None] | Noner   zConfigDict | NoneÚreturnr   )Ú__doc__Ú
__future__r   Úcollections.abcr   Útypingr   r   Úpydantic_corer   Úpydanticr   Úpydantic._internalr	   r
   r   r   © r   r   ú<module>r)      s]   ðÙ jå "å $ß å $å ß JÑ Jð
 9GØTXØ $ð	0Ø
ð0à5ð0ð Rð0ð ð	0ð
 ô0r   