types
marvin.utilities.types
¶
LoggerMixin
¶
BaseModel mixin that adds a private logger
attribute
function_to_model
¶
Converts a function's arguments into an OpenAPI schema by parsing it into a Pydantic model. To work, all arguments must have valid type annotations.
function_to_schema
¶
Converts a function's arguments into an OpenAPI schema by parsing it into a Pydantic model. To work, all arguments must have valid type annotations.
genericalias_contains
¶
Explore whether a type or generic alias contains a target type. The target types can be a single type or a tuple of types.
Useful for seeing if a type contains a pydantic model, for example.