Skip to content

Commit a6a74b1

Browse files
committed
fix: remove deprecated type
1 parent aa2a399 commit a6a74b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ def now_timestamp():
3333
return datetime.datetime.now().strftime('%Y%m%d%H%M%S%f')
3434

3535

36-
def random_data(shape=None, dtype=np.int):
37-
if shape is None:
38-
return dtype(np.random.rand() * 1000)
36+
def random_data(shape, dtype):
3937
return (np.random.rand(*shape) * 1000).astype(dtype)
4038

4139

0 commit comments

Comments
 (0)