Skip to content

Commit 55486c5

Browse files
committed
TYP: fix typechecking (ignore QtCore not being discoverable at compile time)
1 parent fcb96d1 commit 55486c5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

viscm/bezierbuilder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"""
2727

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

3232
from viscm.bezierbuilder.curve import curve_method

viscm/gui.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
# matplotlib.rcParams['backend'] = "QtAgg"
2727
# Do this first before any other matplotlib imports, to force matplotlib to
2828
# use a Qt backend
29-
from matplotlib.backends.qt_compat import QtCore, QtGui, QtWidgets
29+
from matplotlib.backends.qt_compat import ( # type: ignore [attr-defined]
30+
QtCore,
31+
QtGui,
32+
QtWidgets,
33+
)
3034
from matplotlib.colors import ListedColormap
3135
from matplotlib.gridspec import GridSpec
3236

0 commit comments

Comments
 (0)