Source code for python_project_template_AS.utils
"""Tiny helper utilities used by the examples and tests.
Only lightweight predicates live here to keep the package dependency-free and
easy to read.
"""
from typing import Any
[docs]
def is_number(x: Any) -> bool:
"""Return True if x is int or float."""
return isinstance(x, (int, float))