filter_by_dict
faststream.utils.data.filter_by_dict #
Filter a dictionary based on a typed dictionary.
PARAMETER | DESCRIPTION |
---|---|
typed_dict | The typed dictionary to filter by. TYPE: |
data | The dictionary to filter. TYPE: |
RETURNS | DESCRIPTION |
---|---|
TypedDictCls | A new instance of the typed dictionary with only the keys present in the data dictionary. |