tlc.core.type_helper#

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

Module Contents#

Classes#

Class

Description

TypeHelper

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

API#

class tlc.core.type_helper.TypeHelper#

A class with 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_list_of_dicts(value: Any) bool#

Checks if a value is a list of dictionaries

static is_iterable(value: Any) bool#

Checks if a value is iterable