mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40: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:
@@ -22,7 +22,7 @@ from wx.lib.floatcanvas import NavCanvas, FloatCanvas, Resources
|
||||
#from floatcanvas import NavCanvas, FloatCanvas, Resources
|
||||
|
||||
|
||||
import numpy as N
|
||||
import numpy as np
|
||||
|
||||
LongString = (
|
||||
"""This is a long string. It is a bunch of text. I am using it to test how the nifty wrapping text box works when you want to re-size.
|
||||
@@ -62,7 +62,7 @@ class DrawFrame(wx.Frame):
|
||||
self.Canvas.Bind(FloatCanvas.EVT_LEFT_UP, self.OnLeftUp )
|
||||
self.Canvas.Bind(FloatCanvas.EVT_LEFT_DOWN, self.OnLeftDown)
|
||||
|
||||
Point = N.array((0,0), N.float)
|
||||
Point = np.array((0,0), np.float)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user