The difference between these outputs is probably caused by an error in your numpy version.
The code
np.array([173], dtype = np.uint8) * [360]
is an abbreviation for:
np.array([173], dtype = np.uint8) * np.array([360]) # output array([62280])
Thus, [360] is converted to a numpy array with dtype = int. Multiplication takes the highest precision and therefore returns an array with precision int.
source share