Skip to content

Commit

Permalink
Improve typing
Browse files Browse the repository at this point in the history
  • Loading branch information
StSav012 committed Apr 5, 2024
1 parent 3c9a9b5 commit ecdb731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/psk_viewer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pandas as pd # type: ignore
import pyqtgraph as pg # type: ignore
from numpy.typing import NDArray
from pyqtgraph import PlotWidget
from pyqtgraph import GraphicsScene, PlotWidget
from pyqtgraph.GraphicsScene.mouseEvents import MouseClickEvent # type: ignore
from pyqtgraph.exporters.ImageExporter import ImageExporter
from qtpy.QtCore import (
Expand Down Expand Up @@ -139,7 +139,7 @@ def __init__(
self.figure.addItem(self._cursor_balloon)

self._mouse_moved_signal_proxy: pg.SignalProxy = pg.SignalProxy(
self.figure.scene().sigMouseMoved, rateLimit=10, slot=self.on_mouse_moved
cast(GraphicsScene, self.figure.scene()).sigMouseMoved, rateLimit=10, slot=self.on_mouse_moved
)
self._axis_range_changed_signal_proxy: pg.SignalProxy = pg.SignalProxy(
self.figure.sigRangeChanged, rateLimit=20, slot=self.on_lim_changed
Expand Down

0 comments on commit ecdb731

Please sign in to comment.