zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
import numpy as np
 
# Technically this works, but probably shouldn't. See
#
# https://github.com/numpy/numpy/issues/16366
#
np.maximum_sctype(1)  # E: No overload variant
 
np.issubsctype(1, np.int64)  # E: incompatible type
 
np.issubdtype(1, np.int64)  # E: incompatible type
 
np.find_common_type(np.int64, np.int64)  # E: incompatible type