class_inspector.guard_conditions module

class_inspector.guard_conditions.get_guard_conditions(func_details: FuncDetails) str
class_inspector.guard_conditions.get_inner_outer_types(attr_type: str) Tuple[str, str] | str

Get the inner and outer types from the attribute type string.

Parameters:

attr_type (str) – The attribute type string.

Returns:

The inner and outer types extracted from attr_type.

Return type:

Tuple[str, str]

Raises:

TypeError – If the input is not a string.

class_inspector.guard_conditions.get_isinstance_type(attr_type: str) str