diplomat.processing.type_casters.SingletonConvertibleTypeCaster
- class diplomat.processing.type_casters.SingletonConvertibleTypeCaster(*args, **kwds)[source]
Bases:
ConvertibleTypeCasterMethods
__init__()Convert this type to a CLI-Friendly format for display on the command line as a metavar.
Abstract method: Convert this typecaster instance to a regular type hint.
- to_metavar() str
Convert this type to a CLI-Friendly format for display on the command line as a metavar.
- Returns:
A string, the CLI Friendly format for this type.
- to_type_hint() Type
Abstract method: Convert this typecaster instance to a regular type hint.
- Returns:
A type from the typing module or primitive, being the underlying type this typecaster converts values to and represents.