Util

source: bluebase/core/util.py


dump(separator: str = ', ', **kwargs) → str[source]

Convert keyword arguments into a string.

optional(function: Callable) → Callable[source]

Mark a function to be emptied when generating a stub.

assignment(function: Callable) → Callable[source]

Mark a function to be emptied when generating a stub.

is_value_equal(value1: bool | int | float | str, value2: bool | int | float | str) → bool[source]

Check whether two values are equal.

Use the struct module to compare float values using 32-bit representation.