omnipy.util.helpers
| ATTRIBUTE | DESCRIPTION |
|---|---|
Dictable |
TYPE:
|
NumberT |
|
all_equals
Source code in src/omnipy/util/helpers.py
all_type_variants
as_dictable
as_dictable(obj: object) -> Dictable | None
Source code in src/omnipy/util/helpers.py
called_from_omnipy_tests
Source code in src/omnipy/util/helpers.py
create_merged_dict
Source code in src/omnipy/util/helpers.py
ensure_non_str_byte_iterable
ensure_plain_type
ensure_plain_type(in_type: TypeForm) -> ForwardRef | TypeVar | type | _SpecialForm | NoneType
Source code in src/omnipy/util/helpers.py
evaluate_any_forward_refs_if_possible
evaluate_any_forward_refs_if_possible(
in_type: TypeForm, calling_module: str | None = None, **localns
) -> TypeForm
Source code in src/omnipy/util/helpers.py
extract_newline
first_key_in_mapping
first_value_in_mapping
format_classname_with_params
generate_job_slug
generic_aware_issubclass_ignore_args
get_calling_module_name
Source code in src/omnipy/util/helpers.py
get_datetime_format
get_datetime_format(locale: LocaleType | None = None) -> str
Source code in src/omnipy/util/helpers.py
get_default_if_typevar
Source code in src/omnipy/util/helpers.py
get_event_loop_and_check_if_loop_is_running
Source code in src/omnipy/util/helpers.py
get_first_item
get_job_slug_base
Source code in src/omnipy/util/helpers.py
get_parametrized_type
has_items
is_iterable
is_literal_type
is_non_str_byte_iterable
is_optional
is_package_editable
cached
Check if package is installed in editable mode using metadata.
Source code in src/omnipy/util/helpers.py
is_strict_subclass
cached
is_strict_subclass(
__cls: type, __class_or_tuple: type | UnionType | tuple[type | UnionType | tuple[Any, ...], ...]
) -> bool
Source code in src/omnipy/util/helpers.py
is_type_specialization
is_union
is_unreserved_identifier
max_newline_stripped_width
max_or_none
merge_dataclasses
min_or_none
recursive_module_import
recursive_module_import(
module: ModuleType, imported_modules: list[ModuleType] = []
) -> dict[str, object]
Source code in src/omnipy/util/helpers.py
recursive_module_import_new
recursive_module_import_new(
root_path: list[str], imported_modules: dict[str, ModuleType], excluded_set: set[str]
)