31 PydanticDeprecationWarning,
32 SkipValidation,
33▶ ValidationError,
34 validate_arguments,
35)
· · ·
36from pydantic.fields import FieldInfo
37from pydantic.v1 import BaseModel as BaseModelV1
38▶from pydantic.v1 import ValidationError as ValidationErrorV1
39from pydantic.v1 import validate_arguments as validate_arguments_v1
40from typing_extensions import override
· · ·
86
87
88▶class SchemaAnnotationError(TypeError):
89 """Raised when `args_schema` is missing or has an incorrect type annotation."""
90
· · ·
127 annotations: dict[str, Any],
128 *,
129▶ error_on_invalid_docstring: bool = False,
130) -> tuple[str, dict[str, str]]:
131 """Parse function and argument descriptions from a docstring.
· · ·
136 function: The function to parse the docstring from.
137 annotations: Type annotations for the function parameters.
138▶ error_on_invalid_docstring: Whether to raise an error on invalid docstring.
139
140 Returns:
+ 94 more matches in this file