co3.util.types module¶ class co3.util.types.Equatable(*args, **kwargs)[source]¶ Bases: Protocol Protocol for annotating comparable types. __init__(*args, **kwargs)¶ co3.util.types.dictlike_to_dict(obj)[source]¶ Attempt to convert provided object to dict. Will return dict no matter what, including an empty dict if not dict-like. Consider using is_dictlike to determine if this method should be called. Return type: dict co3.util.types.is_dataclass_instance(obj)[source]¶ Return type: bool co3.util.types.is_dictlike(obj)[source]¶ Return type: bool co3.util.types.is_namedtuple_instance(obj)[source]¶ Return type: bool