Victorien
Victorien
### Initial Checks - [X] I have searched Google & GitHub for similar requests and couldn't find anything - [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think...
The runtime behavior is to allow anything if `ImportString` isn't parametrized. We reflect this by providing a default value to the type variable, so that type checkers don't complain on...
### Initial Checks - [X] I have searched Google & GitHub for similar requests and couldn't find anything - [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think...
Also fix a bug where under certain scenarios, a `Field` function inside `Annotated` metadata would retain the `Ellipsis` as a default value. Also make `PrivateAttr` on par with `Field` and...
### Initial Checks - [X] I confirm that I'm using Pydantic V2 ### Description the schema for `field0` will be `{'type': 'union', 'choices': [{'type': 'int'}, {'type': 'str'}]}` instead of the...
### Initial Checks - [X] I confirm that I'm using Pydantic V2 ### Description https://github.com/pydantic/pydantic/issues/10030 improved the error message but unfortunately the added `assert` statement is breaking with: ```python from...
This issue gathers info about performance issues related to schema cleaning. This strongly relates to https://github.com/pydantic/pydantic/discussions/6748. Both performance and memory consumption are in scope. https://github.com/pydantic/pydantic/issues/10297 is orthogonal work and focuses...
### Initial Checks - [X] I confirm that I'm using Pydantic V2 ### Description The following example result in a `KeyError` during schema cleaning: ```python from typing import Generic, TypeVar...
**Bug Report** playground: https://mypy-play.net/?mypy=latest&python=3.12&gist=8c0d1a3a8e3f444fc12af3f803e18c59 ```python from typing import Callable, TypeVar _T = TypeVar("_T") def Field(default_factory: Callable[[], _T]) -> _T: ... # type: ignore[empty] def new_list() -> list[int]: return [] class...