style: Normalise numpy imports with import numpy as np

The convention when importing numpy is to use `import numpy as np`

Fixes: unconventional-import-alias (ICN001)
Ruff rule: https://docs.astral.sh/ruff/rules/unconventional-import-alias/
This commit is contained in:
Edouard Choinière
2025-02-08 16:48:57 +00:00
parent 45f9e89f5d
commit 95cafd1a3f
26 changed files with 233 additions and 233 deletions

View File

@@ -20,9 +20,9 @@ TEST_GC = False
if USE_NUMPY:
try:
import numpy
import numpy as np
def makeByteArray(shape):
return numpy.empty(shape, numpy.uint8)
return np.empty(shape, np.uint8)
numtype = 'numpy'
except ImportError:
USE_NUMPY = False