mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user