1515
1616if TYPE_CHECKING : # pragma: no cover
1717 from qtpy import QtCore as QC
18+ from qtpy .QtCore import QPointF # helping out python_qt_documentation
1819
1920 from plotpy .interfaces import IItemType
2021 from plotpy .styles .base import ItemParameters
@@ -163,7 +164,7 @@ def unselect(self) -> None:
163164 self .selected = False
164165 self .invalidate_plot ()
165166
166- def hit_test (self , pos : QC . QPointF ) -> tuple [float , float , bool , None ]:
167+ def hit_test (self , pos : QPointF ) -> tuple [float , float , bool , None ]:
167168 """Return a tuple (distance, attach point, inside, other_object)
168169
169170 Args:
@@ -208,7 +209,7 @@ def set_item_parameters(self, itemparams):
208209 pass
209210
210211 def move_local_point_to (
211- self , handle : int , pos : QC . QPointF , ctrl : bool = False
212+ self , handle : int , pos : QPointF , ctrl : bool = False
212213 ) -> None :
213214 """Move a handle as returned by hit_test to the new position
214215
@@ -224,7 +225,7 @@ def move_local_point_to(
224225 if self .plot ():
225226 self .plot ().SIG_ITEM_HANDLE_MOVED .emit (self )
226227
227- def move_local_shape (self , old_pos : QC . QPointF , new_pos : QC . QPointF ) -> None :
228+ def move_local_shape (self , old_pos : QPointF , new_pos : QPointF ) -> None :
228229 """Translate the shape such that old_pos becomes new_pos in canvas coordinates
229230
230231 Args:
@@ -259,7 +260,7 @@ def move_point_to(
259260 """
260261 pass
261262
262- def move_shape (self , old_pos : QC . QPointF , new_pos : QC . QPointF ) -> None :
263+ def move_shape (self , old_pos : QPointF , new_pos : QPointF ) -> None :
263264 """Translate the shape such that old_pos becomes new_pos in axis coordinates
264265
265266 Args:
0 commit comments