orkes.shared.create_dict_from_typeddict#

orkes.shared.create_dict_from_typeddict(td_cls)[source]#

Creates a dictionary with default values from a TypedDict class.

This function takes a TypedDict class and creates a dictionary with keys matching the TypedDict’s annotations, and values set to their “zero-value” defaults.

Parameters:

td_cls (type) – The TypedDict class to use.

Returns:

A dictionary with default values.

Return type:

dict