(x: DType)
| 158 | def is_unsigned(x: DType) -> bool: return x.scalar() in dtypes.uints |
| 159 | @staticmethod |
| 160 | def is_bool(x: DType) -> bool: return x.scalar() == dtypes.bool |
| 161 | @staticmethod |
| 162 | def from_py(x) -> DType: |
| 163 | # NOTE: isinstance(True, int) is True, so bool must be checked before int |
no test coverage detected