CustomField

CustomField(
    *,
    cast: bool = True,
    required: bool = True
)

Helper class that provides a standard way to create an ABC using inheritance.

Parameters:
NameDescription
castType: bool

Default: True
requiredType: bool

Default: True

Instance Attributes

cast



field



param_name



required



Instance Methods

set_param_name

set_param_name(self: ~Cls, name: str) -> ~Cls
Parameters:
NameDescription
nameType: str

use

use(
    self,
    /,
    **kwargs: Any
) -> Dict[str, Any]
Parameters:
NameDescription
/
**kwargsType: Any

use_field

use_field(self, kwargs: Dict[str, Any]) -> None
Parameters:
NameDescription
kwargsType: Dict[str, Any]