numpy: drop `numpy.float` in py311

py311
Tyler Goodlet 2023-05-04 12:01:14 -04:00
parent 1ea0163b04
commit 0d9acb1cb0
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ class ShmArray:
# type that all field values will be cast to
# in the returned view.
common_dtype: np.dtype = np.float,
common_dtype: np.dtype = float,
) -> np.ndarray:

View File

@ -620,7 +620,7 @@ class ChartView(ViewBox):
# Ignore axes if mouse is disabled
mouseEnabled = np.array(
self.state['mouseEnabled'],
dtype=np.float,
dtype=float,
)
mask = mouseEnabled.copy()
if axis is not None: