Skip to content

Commit

Permalink
Add type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Feb 12, 2024
1 parent 5282bdb commit 6eab278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ribasim_qgis/widgets/ribasim_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6eab278

Please sign in to comment.