Skip to content

Commit

Permalink
PySide6 type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-thomm committed May 20, 2024
1 parent 43cfd79 commit 4f3d420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/type-checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .
2 changes: 1 addition & 1 deletion ryven-editor/ryven/gui/flow_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion ryvencore-qt/ryvencore_qt/src/flows/FlowView.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f3d420

Please sign in to comment.