import numpy as np np.isdtype(1, np.int64) # E: incompatible type np.issubdtype(1, np.int64) # E: incompatible type