Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e7e5865

Browse files
Merge pull request matplotlib#30626 from QuLogic/fix-f401
MNT: Fix new F401 unused imports warnings
2 parents 56c18a4 + 3b835f8 commit e7e5865

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

‎lib/matplotlib/backends/backend_webagg.py‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
import threading
2222

2323
try:
24-
import tornado
24+
import tornado.web
25+
import tornado.ioloop
26+
import tornado.websocket
2527
except ImportError as err:
2628
raise RuntimeError("The WebAgg backend requires Tornado.") from err
2729

28-
import tornado.web
29-
import tornado.ioloop
30-
import tornado.websocket
31-
3230
import matplotlib as mpl
3331
from matplotlib.backend_bases import _Backend
3432
from matplotlib._pylab_helpers import Gcf

‎lib/matplotlib/backends/backend_wx.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from matplotlib.transforms import Affine2D
3131

3232
import wx
33-
import wx.svg
33+
import wx.svg# noqa: F401
3434

3535
_log = logging.getLogger(__name__)
3636

‎lib/matplotlib/pyplot.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858

5959
from cycler import cycler # noqa: F401
6060
import matplotlib
61-
import matplotlib.colorbar
6261
import matplotlib.image
6362
from matplotlib import _api
6463
# Re-exported (import x as x) for typing.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /