utilities#

grave_settings.utilities.unwrap_slots_to_base(base, target_class, include_base=False)[source]#
Parameters:
  • base (Type) –

  • target_class (Type) –

Return type:

set

grave_settings.utilities.build_attribute_string(k_v_p_attrs)[source]#
Parameters:

k_v_p_attrs (Iterable[tuple[str, object]]) –

Return type:

str

grave_settings.utilities.generate_slots_kvps(obj, base=<class 'object'>)[source]#
Parameters:

obj (object) –

grave_settings.utilities.ext_str_slots(obj, base=<class 'object'>, generator=<function generate_slots_kvps>)[source]#
Parameters:

obj (object) –

grave_settings.utilities.ext_str_fmt(name, vals_gen)[source]#
grave_settings.utilities.ex_str(obj)[source]#
Parameters:

obj (object) –

grave_settings.utilities.format_class_str(x)[source]#
grave_settings.utilities.generate_type_hierarchy_to_base(base, target_class)[source]#
Parameters:
  • base (Type[T]) –

  • target_class (Type) –

Return type:

Generator[Type[T], None, None]

grave_settings.utilities.load_type(str_type, do_import=True)[source]#
grave_settings.utilities.get_type_hints(func)[source]#
Parameters:

func (Callable) –

Return type:

tuple[Any]

grave_settings.utilities.get_first_parameter_type_hint(func)[source]#
Parameters:

func (Callable) –

Return type:

Type