From 4f3d420e4884fdf9139c32decdc134aac2393fa9 Mon Sep 17 00:00:00 2001 From: Leon Thomm Date: Mon, 20 May 2024 10:10:34 +0200 Subject: [PATCH] PySide6 type checking --- .github/workflows/type-checking.yml | 2 +- ryven-editor/ryven/gui/flow_ui.py | 2 +- ryvencore-qt/ryvencore_qt/src/flows/FlowView.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/type-checking.yml b/.github/workflows/type-checking.yml index 195838ac..87f97175 100644 --- a/.github/workflows/type-checking.yml +++ b/.github/workflows/type-checking.yml @@ -30,7 +30,7 @@ jobs: run: python -m pip install . --user && python -m pip uninstall ryven --yes working-directory: ./ryven-editor - name: Install type-checking dependencies - run: python -m pip install mypy pyside2 types-Pygments --user + run: python -m pip install mypy pyside2 pyside6 PySide6-stubs types-Pygments --user - name: Typecheck run: mypy working-directory: . diff --git a/ryven-editor/ryven/gui/flow_ui.py b/ryven-editor/ryven/gui/flow_ui.py index 4cdf09fd..d7aeedab 100644 --- a/ryven-editor/ryven/gui/flow_ui.py +++ b/ryven-editor/ryven/gui/flow_ui.py @@ -103,7 +103,7 @@ def __init__(self, main_window, flow: Flow, flow_view: FlowView): self.ui.inspector_dock.setWidget(self.inspector_widget) #undo history widget - self.undo_widget = QUndoView(stack=self.flow_view._undo_stack) + self.undo_widget = QUndoView(stack=self.flow_view._undo_stack) # type: ignore self.ui.undo_history_dock.setWidget(self.undo_widget) # logs self.ui.logs_scrollArea.setWidget(self.create_loggers_widget()) diff --git a/ryvencore-qt/ryvencore_qt/src/flows/FlowView.py b/ryvencore-qt/ryvencore_qt/src/flows/FlowView.py index c088c332..b91d81f6 100644 --- a/ryvencore-qt/ryvencore_qt/src/flows/FlowView.py +++ b/ryvencore-qt/ryvencore_qt/src/flows/FlowView.py @@ -48,7 +48,7 @@ try: from qtpy.QtGui import QUndoStack except ImportError: - from qtpy.QtWidgets import QUndoStack + from qtpy.QtWidgets import QUndoStack # type: ignore from ryvencore.Flow import Flow from ryvencore.Node import Node