tlc.core.type_helper¶

A class with helper methods for working transforming values between types.

Module Contents¶

Classes¶

Class

Description

TypeHelper

Helper methods for working with atomic values described using type strings (int32, float64, bool, etc.).

API¶

class TypeHelper¶

Helper methods for working with atomic values described using type strings (int32, float64, bool, etc.).

static from_any(
value: Any,
atomic_type: str,
) Any¶

Casts a value according to a type string

static is_iterable(
value: Any,
) bool¶

Checks if a value is iterable

static is_list_of_dicts(
value: Any,
) bool¶

Checks if a value is a list of dictionaries