Tools

exception InfQuotientError

Bases: Exception

notNone(x)
Return type:

TypeVar(T)

get_quotient(v)
Return type:

Fraction

atomize(s, split_by=None)
Return type:

tuple[str, ...]

str_to_fraction(s)
Return type:

Fraction

fraction_to_len(f)
fraction_to_ratio(f)
fraction_to_angle(f)
reshape(to_reshape, n)
Return type:

Generator[tuple[TypeVar(T), ...], None, None]

add_edge(net, u, v)
runtime_cache_path(problem_path)
run_static_server(directory_to_serve)
boring_statement(statement)