Types Provider¶
Hooks for getting and setting a variable's type.
Hooks¶
Type | Description | Return |
---|---|---|
bool | Hook for casting a variable to a bool type. | bool |
float | Hook for casting a variable to a float type. | float |
hex | Hook for changing an int to a hexidecimal. | hex |
int | Hook for casting a variable to an integer type. | int |
str | Hook for casting a variable to a string type. | str |
type | Hook for getting the type of a variable. | str |
Examples¶
type¶
Hook to get type of variable.
stuff: things
map:
stuff: things
stuff_type->: type stuff # rendered by default
map_type->: type map
stuff: things
map:
stuff: things
stuff_type: str
map_type: dict