Skip to content

Commit

Permalink
TYP: fix typechecking (ignore QtCore not being discoverable at compil…
Browse files Browse the repository at this point in the history
…e time)
  • Loading branch information
neutrinoceros committed Oct 26, 2024
1 parent fcb96d1 commit 55486c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viscm/bezierbuilder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"""

import numpy as np
from matplotlib.backends.qt_compat import QtCore
from matplotlib.backends.qt_compat import QtCore # type: ignore [attr-defined]
from matplotlib.lines import Line2D

from viscm.bezierbuilder.curve import curve_method
Expand Down
6 changes: 5 additions & 1 deletion viscm/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
# matplotlib.rcParams['backend'] = "QtAgg"
# Do this first before any other matplotlib imports, to force matplotlib to
# use a Qt backend
from matplotlib.backends.qt_compat import QtCore, QtGui, QtWidgets
from matplotlib.backends.qt_compat import ( # type: ignore [attr-defined]
QtCore,
QtGui,
QtWidgets,
)
from matplotlib.colors import ListedColormap
from matplotlib.gridspec import GridSpec

Expand Down

0 comments on commit 55486c5

Please sign in to comment.