Skip to content

Commit fe977cb

Browse files
committed
coverage: ignore if TYPE_CHECKING blocks
1 parent 0834a76 commit fe977cb

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

plotpy/builder/curvemarker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
update_style_attr,
4646
)
4747

48-
if TYPE_CHECKING:
48+
if TYPE_CHECKING: # pragma: no cover
4949
from typing import Callable
5050

5151
CURVE_COUNT = 0

plotpy/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
from plotpy.coords import axes_to_canvas, canvas_to_axes
9797
from plotpy.items.shape.marker import Marker
9898

99-
if TYPE_CHECKING:
99+
if TYPE_CHECKING: # pragma: no cover
100100
from qtpy.QtCore import QPoint
101101

102102
from plotpy.plot.base import BasePlot

plotpy/external/sliders/_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from contextlib import contextmanager
22
from typing import TYPE_CHECKING, Iterator
33

4-
if TYPE_CHECKING:
4+
if TYPE_CHECKING: # pragma: no cover
55
from qtpy.QtCore import QObject
66

77

plotpy/external/sliders/_range_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
)
1818
from qtpy.QtWidgets import QApplication, QSlider, QStyleOptionSlider
1919

20-
if TYPE_CHECKING:
20+
if TYPE_CHECKING: # pragma: no cover
2121
from ._generic_range_slider import _GenericRangeSlider
2222

2323

plotpy/panels/csection/csitem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from plotpy.items.image.misc import get_image_from_qrect
1717
from plotpy.mathutils.geometry import rotate, translate, vector_angle, vector_norm
1818

19-
if TYPE_CHECKING:
19+
if TYPE_CHECKING: # pragma: no cover
2020
from plotpy.items import AnnotatedObliqueRectangle, AnnotatedSegment
2121

2222
try:

plotpy/styles/curve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
SymbolItem,
2626
)
2727

28-
if TYPE_CHECKING:
28+
if TYPE_CHECKING: # pragma: no cover
2929
from plotpy.items import CurveItem
3030

3131

plotpy/styles/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
)
3333
from plotpy.styles.base import ItemParameters
3434

35-
if TYPE_CHECKING:
35+
if TYPE_CHECKING: # pragma: no cover
3636
from guidata.dataset import DataSet
3737

3838

plotpy/styles/polygonmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from plotpy.config import _
1010
from plotpy.styles.base import ItemParameters
1111

12-
if TYPE_CHECKING:
12+
if TYPE_CHECKING: # pragma: no cover
1313
from plotpy.items import PolygonMapItem
1414

1515

plotpy/tests/unit/test_point_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from plotpy.tools import EditPointTool, SelectPointsTool, SelectPointTool
1717
from plotpy.tools.curve import DownSamplingTool
1818

19-
if TYPE_CHECKING:
19+
if TYPE_CHECKING: # pragma: no cover
2020

2121
from plotpy.items.curve.base import CurveItem
2222

plotpy/tests/unit/test_shape_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
SnapshotTool,
2828
)
2929

30-
if TYPE_CHECKING:
30+
if TYPE_CHECKING: # pragma: no cover
3131
from plotpy.plot.plotwidget import PlotWindow
3232
from plotpy.tools.base import RectangularActionTool
3333

plotpy/tests/unit/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from plotpy.tests.features.test_auto_curve_image import make_curve_image_legend
1212
from plotpy.tools import CommandTool, InteractiveTool
1313

14-
if TYPE_CHECKING:
14+
if TYPE_CHECKING: # pragma: no cover
1515

1616
import numpy as np
1717

plotpy/tools/cross_section.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from plotpy.tools.image import update_image_tool_status
2121
from plotpy.tools.shape import RectangularShapeTool
2222

23-
if TYPE_CHECKING:
23+
if TYPE_CHECKING: # pragma: no cover
2424
from plotpy.plot import BasePlot
2525

2626

plotpy/tools/curve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from plotpy.tools.base import DefaultToolbarID, InteractiveTool, ToggleTool
3131
from plotpy.tools.cursor import BaseCursorTool
3232

33-
if TYPE_CHECKING:
33+
if TYPE_CHECKING: # pragma: no cover
3434
from plotpy.plot.base import BasePlot
3535
from plotpy.plot.manager import PlotManager
3636

0 commit comments

Comments
 (0)