diplomat.processing.type_casters.typecaster_function
- diplomat.processing.type_casters.typecaster_function(func: Callable) TypeCasterFunction[source]
Turns a function annotated with typecaster objects into a regular function with normal type annotations. The original typecaster annotations can be retrieved using
get_typecaster_annotations().- Parameters
func – The function to manipulate the typecaster based annotations of.
- Returns
The original function with modified annotations and additional functionality for extracting the original type caster types…