Check type

drain_swamp_snippet.check_type.__all__: tuple[str] = ("is_ok",)
drain_swamp_snippet.check_type.is_ok(test)

Check if non-empty str

Edge case: contains only whitespace –> False

Parameters:

test (Any | None) – variable to test

Returns:

True if non-empty str otherwise False

Return type:

bool