From 6eab2786cc54aa46f3854116b94ad5ad2bbde473 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Mon, 12 Feb 2024 22:09:37 +0100 Subject: [PATCH] Add type ignore --- ribasim_qgis/widgets/ribasim_widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ribasim_qgis/widgets/ribasim_widget.py b/ribasim_qgis/widgets/ribasim_widget.py index 0ca990a24..33a3d3c4d 100644 --- a/ribasim_qgis/widgets/ribasim_widget.py +++ b/ribasim_qgis/widgets/ribasim_widget.py @@ -174,9 +174,9 @@ def add_layer( config = maplayer.editFormConfig() # From QGIS 3.32 on we can use https://github.com/Deltares/Ribasim/commit/8a22fc0630f343069fd3c285ae46e9fde0c71a32 config.setSuppress( - QgsEditFormConfig.FeatureFormSuppress.SuppressOn + QgsEditFormConfig.FeatureFormSuppress.SuppressOn # type: ignore if suppress - else QgsEditFormConfig.FeatureFormSuppress.SuppressDefault + else QgsEditFormConfig.FeatureFormSuppress.SuppressDefault # type: ignore ) maplayer.setEditFormConfig(config) if renderer is not None: