Skip to main content
Glama

API Docs MCP Server

config.cpython-310.pyc6 kB
o �I�g@��@s�UdZddlmZddlZddlmZddlmZm Z m Z m Z m Z m Z mZmZddlmZmZmZmZddlmZdd lmZdd lmZdd lmZer[dd lmZdd lm Z m!Z!dZ"e e#e$e%e&de'ddfZ(de)d<e*e%e(fZ+de)d<e e ge fZ,e e e+gdfe e+e-e gdffZ.de)d<e dZ/Gdd�dedd�Z0e de-d�Z1eed�d'dd���Z2ed'd d��Z2ed(d"d��Z2d)d*d&d�Z2ee3�Z4dS)+z"Configuration for Pydantic models.�)� annotationsN)�Pattern)� TYPE_CHECKING�Any�Callable�Literal�TypeVar�Union�cast�overload)� TypeAlias� TypedDict�Unpack� deprecated�)�getattr_migration)�AliasGenerator)�PydanticUserError)�PydanticDeprecatedSince211)�GenerateSchema)�ComputedFieldInfo� FieldInfo)� ConfigDict� with_config� JsonValue�JsonDictr �JsonSchemaExtraCallable)Zallow�ignoreZforbidc@s�eZdZUdZded< ded< ded< ded < ded < ded < d ed < ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< d ed!< ded"< d#ed$< d%ed&< d'ed(< d'ed)< d*ed+< ded,< ded-< d.ed/< ded0< ded1< d2ed3< d4ed5< ded6< d7ed8< ded9< d:ed;< ded<< ded=< d>ed?< ded@< dedA< dedB<dCS)Drz/A TypedDict for configuring Pydantic behaviour.z str | None�titlezCallable[[type], str] | NoneZmodel_title_generatorz:Callable[[str, FieldInfo | ComputedFieldInfo], str] | NoneZfield_title_generator�boolZ str_to_lowerZ str_to_upperZstr_strip_whitespace�intZstr_min_lengthz int | NoneZstr_max_lengthzExtraValues | None�extra�frozenZpopulate_by_nameZuse_enum_valuesZvalidate_assignmentZarbitrary_types_allowedZfrom_attributesZ loc_by_aliasz,Callable[[str], str] | AliasGenerator | NoneZalias_generatorztuple[type, ...]Z ignored_typesZ allow_inf_nanz)JsonDict | JsonSchemaExtraCallable | NoneZjson_schema_extraz&dict[type[object], JsonEncoder] | NoneZ json_encoders�strictz0Literal['always', 'never', 'subclass-instances']Zrevalidate_instanceszLiteral['iso8601', 'float']Zser_json_timedeltaz Literal['utf8', 'base64', 'hex']Zser_json_bytesZval_json_bytesz'Literal['null', 'constants', 'strings']Zser_json_inf_nanZvalidate_defaultZvalidate_returnztuple[str | Pattern[str], ...]Zprotected_namespacesZhide_input_in_errorsZ defer_buildzdict[str, object] | NoneZplugin_settingsztype[_GenerateSchema] | NoneZschema_generatorZ+json_schema_serialization_defaults_requiredz,Literal['validation', 'serialization', None]Zjson_schema_mode_overrideZcoerce_numbers_to_strz"Literal['rust-regex', 'python-re']Z regex_engineZvalidation_error_causeZuse_attribute_docstringsz%bool | Literal['all', 'keys', 'none']Z cache_stringsZvalidate_by_aliasZvalidate_by_nameZserialize_by_aliasN)�__name__� __module__� __qualname__�__doc__�__annotations__�r)r)�]C:\Users\apqls\Documents\Github\tkbase\api-docs-mcp\venv\Lib\site-packages\pydantic/config.pyr$s� ^ &&36: x   ]+  &6%$ '#'rF)�total�_TypeT)�boundzePassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead.�config�return�Callable[[_TypeT], _TypeT]cC�dS�Nr)�r.r)r)r*rxsrcCr1r2r)r3r)r)r*r}��Unpack[ConfigDict]cKr1r2r)r3r)r)r*r�r4�ConfigDict | None�kwargsrc sv|dur |r td��t|�dkr'|�d�}dur'tjdtdd�tt|��n |dur-|ntt|��d �fd d � }|S)a-!!! abstract "Usage Documentation" [Configuration with other types](../concepts/config.md#configuration-on-other-supported-types) A convenience decorator to set a [Pydantic configuration](config.md) on a `TypedDict` or a `dataclass` from the standard library. Although the configuration can be set using the `__pydantic_config__` attribute, it does not play well with type checkers, especially with `TypedDict`. !!! example "Usage" ```python from typing_extensions import TypedDict from pydantic import ConfigDict, TypeAdapter, with_config @with_config(ConfigDict(str_to_lower=True)) class TD(TypedDict): x: str ta = TypeAdapter(TD) print(ta.validate_python({'x': 'ABC'})) #> {'x': 'abc'} ``` Nz2Cannot specify both `config` and keyword argumentsrr.zdPassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead�)�category� stacklevel�class_r,r/cs4ddlm}||�rtd|j�d�dd���|_|S)Nr)�is_model_classzCannot use `with_config` on z as it is a Pydantic modelzwith-config-on-model)�code)Z_internal._utilsr<rr$Z__pydantic_config__)r;r<�Z final_configr)r*�inner�s  �zwith_config.<locals>.inner)r;r,r/r,)� ValueError�len�get�warnings�warnrr r)r.r7Z kwargs_confr?r)r>r*r�s � )r.rr/r0)r.r5r/r0r2)r.r6r7rr/r0)5r'� __future__rZ _annotationsrC�rer�typingrrrrrr r r Ztyping_extensionsr r rrZ _migrationr�aliasesr�errorsrrZ_internal._generate_schemarZ_GenerateSchema�fieldsrr�__all__r �float�strr�listrr(�dictrZ JsonEncoder�typerZ ExtraValuesrr,rr$� __getattr__r)r)r)r*�<module>sT  (     " � � Y    8

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ShotaNagafuchi/api-docs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server