Skip to main content

prefect.types

Functions

check_variable_value

cast_none_to_empty_dict

validate_set_T_from_delim_string

“no-info” before validator useful in scooping env vars e.g. PREFECT_CLIENT_RETRY_EXTRA_CODES=429,502,503 -> {429, 502, 503} e.g. PREFECT_CLIENT_RETRY_EXTRA_CODES=429 -> {429}

parse_retry_delay_input

Parses various inputs (string, int, float, list) into a format suitable for TaskRetryDelaySeconds (int, float, list[float], or None). Handles comma-separated strings for lists of delays.

convert_none_to_empty_dict

Classes

SecretDict