3 lines
112 B
Python
3 lines
112 B
Python
|
def is_number(t: type) -> bool:
|
||
|
return issubclass(t, int) or issubclass(t, float) or issubclass(t, complex)
|