Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions stubs/pyqtgraph/METADATA.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version = "0.13.*"
upstream_repository = "https://github.com/pyqtgraph/pyqtgraph"
46 changes: 46 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/GraphicsScene/GraphicsScene.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
from _typeshed import Incomplete

from ..Qt import QtWidgets

__all__ = ["GraphicsScene"]

class GraphicsScene(QtWidgets.QGraphicsScene):

Check failure on line 7 in stubs/pyqtgraph/pyqtgraph/GraphicsScene/GraphicsScene.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"QGraphicsScene" is not a known attribute of module "..Qt.QtWidgets" (reportAttributeAccessIssue)

Check failure on line 7 in stubs/pyqtgraph/pyqtgraph/GraphicsScene/GraphicsScene.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
sigMouseHover: Incomplete
sigMouseMoved: Incomplete
sigMouseClicked: Incomplete
sigPrepareForPaint: Incomplete
sigItemAdded: Incomplete
sigItemRemoved: Incomplete
ExportDirectory: Incomplete
exportDirectory: Incomplete
clickEvents: Incomplete
dragButtons: Incomplete
mouseGrabber: Incomplete
dragItem: Incomplete
lastDrag: Incomplete
hoverItems: Incomplete
lastHoverEvent: Incomplete
minDragTime: float
contextMenu: Incomplete
exportDialog: Incomplete
def __init__(self, clickRadius: int = 2, moveDistance: int = 5, parent=None) -> None: ...
def render(self, *args): ...
def prepareForPaint(self) -> None: ...
def setClickRadius(self, r: int): ...
def setMoveDistance(self, d) -> None: ...
def mousePressEvent(self, ev) -> None: ...
def mouseMoveEvent(self, ev) -> None: ...
def leaveEvent(self, ev) -> None: ...
def mouseReleaseEvent(self, ev) -> None: ...
def mouseDoubleClickEvent(self, ev) -> None: ...
def sendHoverEvents(self, ev, exitOnly: bool = False) -> None: ...
def sendDragEvent(self, ev, init: bool = False, final: bool = False): ...
def sendClickEvent(self, ev): ...
def addItem(self, item): ...
def removeItem(self, item): ...
def itemsNearEvent(self, event, selMode=..., sortOrder=..., hoverable: bool = False): ...
def getViewWidget(self): ...
def addParentContextMenus(self, item, menu, event): ...
contextMenuItem: Incomplete
def getContextMenus(self, event): ...
def showExportDialog(self) -> None: ...
1 change: 1 addition & 0 deletions stubs/pyqtgraph/pyqtgraph/GraphicsScene/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .GraphicsScene import *
25 changes: 25 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/GraphicsScene/exportDialog.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from _typeshed import Incomplete

from ..Qt import QtWidgets

class FormatExportListWidgetItem(QtWidgets.QListWidgetItem):

Check failure on line 5 in stubs/pyqtgraph/pyqtgraph/GraphicsScene/exportDialog.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"QListWidgetItem" is not a known attribute of module "..Qt.QtWidgets" (reportAttributeAccessIssue)

Check failure on line 5 in stubs/pyqtgraph/pyqtgraph/GraphicsScene/exportDialog.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
expClass: Incomplete
def __init__(self, expClass, *args, **kwargs) -> None: ...

class ExportDialog(QtWidgets.QWidget):

Check failure on line 9 in stubs/pyqtgraph/pyqtgraph/GraphicsScene/exportDialog.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"QWidget" is not a known attribute of module "..Qt.QtWidgets" (reportAttributeAccessIssue)

Check failure on line 9 in stubs/pyqtgraph/pyqtgraph/GraphicsScene/exportDialog.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
shown: bool
currentExporter: Incomplete
scene: Incomplete
selectBox: Incomplete
ui: Incomplete
def __init__(self, scene) -> None: ...
def show(self, item=None) -> None: ...
def updateItemList(self, select=None) -> None: ...
def updateItemTree(self, item, treeItem, select=None) -> None: ...
def exportItemChanged(self, item, prev) -> None: ...
def updateFormatList(self) -> None: ...
def exportFormatChanged(self, item, prev) -> None: ...
def exportClicked(self) -> None: ...
def copyClicked(self) -> None: ...
def close(self) -> None: ...
def closeEvent(self, event) -> None: ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from _typeshed import Incomplete

from ..Qt import QtGui as QtGui

class Ui_Form:
gridLayout: Incomplete
label: Incomplete
itemTree: Incomplete
label_2: Incomplete
formatList: Incomplete
exportBtn: Incomplete
closeBtn: Incomplete
paramTree: Incomplete
label_3: Incomplete
copyBtn: Incomplete
def setupUi(self, Form) -> None: ...
def retranslateUi(self, Form) -> None: ...
67 changes: 67 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/GraphicsScene/mouseEvents.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
from _typeshed import Incomplete

__all__ = ["MouseDragEvent", "MouseClickEvent", "HoverEvent"]

class MouseDragEvent:
start: Incomplete
finish: Incomplete
accepted: bool
currentItem: Incomplete
acceptedItem: Incomplete
def __init__(self, moveEvent, pressEvent, lastEvent, start: bool = False, finish: bool = False) -> None: ...
def accept(self) -> None: ...
def ignore(self) -> None: ...
def isAccepted(self): ...
def scenePos(self): ...
def screenPos(self): ...
def buttonDownScenePos(self, btn=None): ...
def buttonDownScreenPos(self, btn=None): ...
def lastScenePos(self): ...
def lastScreenPos(self): ...
def buttons(self): ...
def button(self): ...
def pos(self): ...
def lastPos(self): ...
def buttonDownPos(self, btn=None): ...
def isStart(self): ...
def isFinish(self): ...
def modifiers(self): ...

class MouseClickEvent:
accepted: bool
currentItem: Incomplete
acceptedItem: Incomplete
def __init__(self, pressEvent, double: bool = False) -> None: ...
def accept(self) -> None: ...
def ignore(self) -> None: ...
def isAccepted(self): ...
def scenePos(self): ...
def screenPos(self): ...
def buttons(self): ...
def button(self): ...
def double(self): ...
def pos(self): ...
def lastPos(self): ...
def modifiers(self): ...
def time(self): ...

class HoverEvent:
enter: bool
acceptable: Incomplete
exit: bool
currentItem: Incomplete
def __init__(self, moveEvent, acceptable) -> None: ...
def isEnter(self): ...
def isExit(self): ...
def acceptClicks(self, button): ...
def acceptDrags(self, button): ...
def scenePos(self): ...
def screenPos(self): ...
def lastScenePos(self): ...
def lastScreenPos(self): ...
def buttons(self): ...
def pos(self): ...
def lastPos(self): ...
def modifiers(self): ...
def clickItems(self): ...
def dragItems(self): ...
13 changes: 13 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/PlotData.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from _typeshed import Incomplete

class PlotData:
fields: Incomplete
maxVals: Incomplete
minVals: Incomplete
def __init__(self) -> None: ...
def addFields(self, **fields) -> None: ...
def hasField(self, f): ...
def __getitem__(self, field): ...
def __setitem__(self, field, val) -> None: ...
def max(self, field): ...
def min(self, field): ...
31 changes: 31 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/Point.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from .Qt import QtCore

class Point(QtCore.QPointF):

Check failure on line 3 in stubs/pyqtgraph/pyqtgraph/Point.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"QPointF" is not a known attribute of module ".Qt.QtCore" (reportAttributeAccessIssue)

Check failure on line 3 in stubs/pyqtgraph/pyqtgraph/Point.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
def __init__(self, *args) -> None: ...
def __len__(self) -> int: ...
def __reduce__(self): ...
def __getitem__(self, i): ...
def __iter__(self): ...
def __setitem__(self, i, x) -> None: ...
def __radd__(self, a): ...
def __add__(self, a): ...
def __rsub__(self, a): ...
def __sub__(self, a): ...
def __rmul__(self, a): ...
def __mul__(self, a): ...
def __rdiv__(self, a): ...
def __div__(self, a): ...
def __truediv__(self, a): ...
def __rtruediv__(self, a): ...
def __rpow__(self, a): ...
def __pow__(self, a): ...
def length(self): ...
def norm(self): ...
def angle(self, a, units: str = "degrees"): ...
def dot(self, a): ...
def cross(self, a): ...
def proj(self, b): ...
def min(self): ...
def max(self): ...
def copy(self): ...
def toQPoint(self): ...
Empty file.
Empty file.
Empty file.
49 changes: 49 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/Qt/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
from _typeshed import Incomplete

from . import internals as internals

PYSIDE: str
PYSIDE2: str
PYSIDE6: str
PYQT4: str
PYQT5: str
PYQT6: str
QT_LIB: Incomplete
libOrder: Incomplete
QT_LIB = lib

Check failure on line 13 in stubs/pyqtgraph/pyqtgraph/Qt/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"lib" is not defined (reportUndefinedVariable)

Check failure on line 13 in stubs/pyqtgraph/pyqtgraph/Qt/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"QT_LIB" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
qt: Incomplete
QT_LIB = lib

class FailedImport:
err: Incomplete
def __init__(self, err) -> None: ...
def __getattr__(self, attr) -> None: ...

class _StringIO:
data: Incomplete
def __init__(self) -> None: ...
def write(self, data) -> None: ...
def getvalue(self): ...

VERSION_INFO: Incomplete
module: Incomplete
module_whitelist: Incomplete
attr: Incomplete
QtVersion: Incomplete
loadUiType: Incomplete
isQObjectAlive: Incomplete

@staticmethod
def qWait(msec) -> None: ...

sys_excepthook: Incomplete

def pyqt_qabort_override(*args, **kwds): ...

versionReq: Incomplete
m: Incomplete
App: Incomplete
QAPP: Incomplete

def mkQApp(name=None): ...
def exec_(): ...
Empty file.
20 changes: 20 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/Qt/internals.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import ctypes

__all__ = ["get_qpainterpath_element_array"]

class QArrayDataQt5(ctypes.Structure): ...
class QPainterPathPrivateQt5(ctypes.Structure): ...
class QArrayDataQt6(ctypes.Structure): ...
class QPainterPathPrivateQt6(ctypes.Structure): ...

def get_qpainterpath_element_array(qpath, nelems=None): ...

class PrimitiveArray:
use_sip_array: bool
use_ptr_to_array: bool
def __init__(self, Klass, nfields, *, use_array=None) -> None: ...
def resize(self, size) -> None: ...
def __len__(self) -> int: ...
def ndarray(self): ...
def instances(self): ...
def drawargs(self): ...
24 changes: 24 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/SRTTransform.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from .Qt import QtGui

class SRTTransform(QtGui.QTransform):
def __init__(self, init=None) -> None: ...
def getScale(self): ...
def getRotation(self): ...
def getTranslation(self): ...
def reset(self) -> None: ...
def setFromQTransform(self, tr) -> None: ...
def setFromMatrix4x4(self, m) -> None: ...
def translate(self, *args) -> None: ...
def setTranslate(self, *args) -> None: ...
def scale(self, *args) -> None: ...
def setScale(self, *args) -> None: ...
def rotate(self, angle) -> None: ...
def setRotate(self, angle) -> None: ...
def __truediv__(self, t): ...
def __div__(self, t): ...
def __mul__(self, t): ...
def saveState(self): ...
def __reduce__(self): ...
def restoreState(self, state) -> None: ...
def update(self) -> None: ...
def matrix(self): ...
21 changes: 21 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/SRTTransform3D.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from .Transform3D import Transform3D

class SRTTransform3D(Transform3D):
def __init__(self, init=None) -> None: ...
def getScale(self): ...
def getRotation(self): ...
def getTranslation(self): ...
def reset(self) -> None: ...
def translate(self, *args) -> None: ...
def setTranslate(self, *args) -> None: ...
def scale(self, *args) -> None: ...
def setScale(self, *args) -> None: ...
def rotate(self, angle, axis=(0, 0, 1)) -> None: ...
def setRotate(self, angle, axis=(0, 0, 1)) -> None: ...
def setFromMatrix(self, m) -> None: ...
def as2D(self): ...
def saveState(self): ...
def restoreState(self, state) -> None: ...
def update(self) -> None: ...
def matrix(self, nd: int = 3): ...
def __reduce__(self): ...
23 changes: 23 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/SignalProxy.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from _typeshed import Incomplete

from .Qt import QtCore

__all__ = ["SignalProxy"]

class SignalProxy(QtCore.QObject):
sigDelayed: Incomplete
delay: Incomplete
rateLimit: Incomplete
args: Incomplete
timer: Incomplete
lastFlushTime: Incomplete
signal: Incomplete
blockSignal: bool
slot: Incomplete
def __init__(self, signal, delay: float = 0.3, rateLimit: int = 0, slot=None, *, threadSafe: bool = True) -> None: ...
def setDelay(self, delay) -> None: ...
def signalReceived(self, *args) -> None: ...
def flush(self): ...
def disconnect(self) -> None: ...
def connectSlot(self, slot) -> None: ...
def block(self): ...
15 changes: 15 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/ThreadsafeTimer.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from _typeshed import Incomplete

from .Qt import QtCore

__all__ = ["ThreadsafeTimer"]

class ThreadsafeTimer(QtCore.QObject):
timeout: Incomplete
sigTimerStopRequested: Incomplete
sigTimerStartRequested: Incomplete
timer: Incomplete
def __init__(self) -> None: ...
def start(self, timeout) -> None: ...
def stop(self) -> None: ...
def timerFinished(self) -> None: ...
7 changes: 7 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/Transform3D.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from .Qt import QtGui

class Transform3D(QtGui.QMatrix4x4):
def __init__(self, *args) -> None: ...
def matrix(self, nd: int = 3): ...
def map(self, obj): ...
def inverted(self): ...
10 changes: 10 additions & 0 deletions stubs/pyqtgraph/pyqtgraph/Vector.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from .Qt import QT_LIB as QT_LIB, QtGui

class Vector(QtGui.QVector3D):
def __init__(self, *args) -> None: ...
def __len__(self) -> int: ...
def __getitem__(self, i): ...
def __setitem__(self, i, x) -> None: ...
def __iter__(self): ...
def angle(self, a): ...
def __abs__(self): ...
Loading
Loading