sh_cpl/src/cpl_query/_helper.py

3 lines
112 B
Python

def is_number(t: type) -> bool:
return issubclass(t, int) or issubclass(t, float) or issubclass(t, complex)