util

util

Module defining utility functions

Types

_Key
_Value
_Class
_Type

Functions

assert_never

Function used for exhaustiveness checks

dict_from_multiple_keys

Constructs a dict from a list of items where a value can have multiple keys

filter_ordered_dict

Filters items of an ordered dictionary based on a predicate

filter_ordered_dict_by_value_type

Filters values of an ordered dictionary that correspond to a given type

filter_sequence_by_value_type

Filter values using their type and an optional predicate

filter_types

Searches for elements of a given type in a sequence

filter_types_single

Searches for zero or one elements of a given type in a sequence

Classes

ClassDoc

Stores information about Sphinx autodoc-style documentation for a class