Skip to content

Commit

Permalink
Fix mypy errors in qgis
Browse files Browse the repository at this point in the history
  • Loading branch information
deltamarnix committed Jul 31, 2024
1 parent 0540992 commit c0cbda4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ribasim_qgis/ribasim_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from qgis.PyQt.QtWidgets import QAction


class RibasimDockWidget(QgsDockWidget): # type: ignore
class RibasimDockWidget(QgsDockWidget):

Check warning on line 11 in ribasim_qgis/ribasim_qgis.py

View check run for this annotation

Codecov / codecov/patch

ribasim_qgis/ribasim_qgis.py#L11

Added line #L11 was not covered by tests
def closeEvent(self, event) -> None:
# TODO: if we implement talking to a Julia server, shut it down here.
event.accept()
Expand Down
2 changes: 1 addition & 1 deletion ribasim_qgis/scripts/qgis_testrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __get_test_function(test_module_name):
from qgis.PyQt.QtCore import QDir


class QgsProjectBadLayerDefaultHandler(QgsProjectBadLayerHandler): # type: ignore
class QgsProjectBadLayerDefaultHandler(QgsProjectBadLayerHandler):
def handleBadLayers(self, layers, dom):
pass

Expand Down
2 changes: 1 addition & 1 deletion ribasim_qgis/tests/core/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
)


class TestModel(unittest.TestCase): # type: ignore
class TestModel(unittest.TestCase):
tests_folder_path = Path(__file__).parent.parent.resolve()
data_folder_path = tests_folder_path / "data"

Expand Down
2 changes: 1 addition & 1 deletion ribasim_qgis/ui_tests/test_load_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from qgis.utils import iface, plugins


class TestPlugin(unittest.TestCase): # type: ignore
class TestPlugin(unittest.TestCase):
def test_plugin_is_loaded(self):
"""Test plugin is properly loaded and appears in QGIS plugins."""
plugin = plugins.get("ribasim_qgis")
Expand Down

0 comments on commit c0cbda4

Please sign in to comment.