NoCastField
faststream.params.no_cast.NoCastField #
NoCastField()
Bases: CustomField
A class that represents a custom field without casting.
You can use it to annotate fields, that should not be casted.
Usage:
data: Annotated[..., NoCast()]
Source code in faststream/params/no_cast.py
17 18 | |
use #
use(**kwargs: Any) -> dict[str, Any]
Source code in faststream/params/no_cast.py
20 21 22 | |
set_param_name #
set_param_name(name: str) -> Cls
Source code in fast_depends/library/model.py
30 31 32 | |
use_field #
use_field(kwargs: dict[str, Any]) -> None
Source code in fast_depends/library/model.py
38 39 | |