diff --git a/docs/usage/validation_decorator.md b/docs/usage/validation_decorator.md index 1f5fe546ad..a6665bc9c7 100644 --- a/docs/usage/validation_decorator.md +++ b/docs/usage/validation_decorator.md @@ -396,18 +396,3 @@ it never will be. ### Return value The return value of the function may optionally be validated against its return type annotation. - -### Model fields and reserved arguments - -The following names may not be used by arguments since they can be used internally to store information about -the function's signature: - -* `v__args` -* `v__kwargs` -* `v__positional_only` - -These names (together with `"args"` and `"kwargs"`) may or may not (depending on the function's signature) appear as -fields on the internal Pydantic model accessible via `.model` thus this model isn't especially useful -(e.g. for generating a schema) at the moment. - -This should be fixable in future as the way error are raised is changed. diff --git a/pydantic/_internal/_std_types_schema.py b/pydantic/_internal/_std_types_schema.py index ec74a6f8c0..0e523bc96f 100644 --- a/pydantic/_internal/_std_types_schema.py +++ b/pydantic/_internal/_std_types_schema.py @@ -625,7 +625,7 @@ def infer_default() -> Callable[[], Any]: bool: bool, } values_type_origin = get_origin(values_source_type) or values_source_type - instructions = 'set using `DefaultDict[..., Annotated[..., Field(default_factory=...)]]' + instructions = 'set using `DefaultDict[..., Annotated[..., Field(default_factory=...)]]`' if isinstance(values_type_origin, TypeVar): def type_var_default_factory() -> None: diff --git a/pydantic/main.py b/pydantic/main.py index eebe5bc56f..e986642b5b 100644 --- a/pydantic/main.py +++ b/pydantic/main.py @@ -1287,8 +1287,7 @@ def create_model( __cls_kwargs__: A dictionary of keyword arguments for class creation. __slots__: Deprecated. Should not be passed to `create_model`. **field_definitions: Attributes of the new model. They should be passed in the format: - `=(, )` or `=`. For more complex cases, they can be - passed in the format: `=` or `=(, )`. + `=(, )` or `=(, )`. Returns: The new [model][pydantic.BaseModel].