Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_py_type(self):
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
def test_py_type(self):
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
def test_py_type(self):
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
def test_py_type(self):
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
def test_py_type(self):
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
def test_py_type(self):
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
def test_py_type(self):
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))
def test_py_type(self):
self.assertIs(int, py_type(np.dtype(int)))
self.assertIs(str, py_type(np.dtype(str)))
self.assertIs(object, py_type(np.dtype(object)))
self.assertIs(float, py_type(np.dtype(float)))
self.assertIs(int, py_type(np.int))
self.assertIs(int, py_type(np.int16))
self.assertIs(int, py_type(np.int32))
self.assertIs(int, py_type(np.int64))
self.assertIs(float, py_type(np.float))
self.assertIs(float, py_type(np.float16))
self.assertIs(float, py_type(np.float32))
self.assertIs(float, py_type(np.float64))
self.assertIs(datetime, py_type(np.datetime64))
self.assertIs(timedelta, py_type(np.timedelta64))