Skip to content

Commit 61982e2

Browse files
committed
Fixed incompatible types error by ignoring it
1 parent 764d7ce commit 61982e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
rev: v1.18.2
3030
hooks:
3131
- id: mypy
32-
args: [--strict, --ignore-missing-imports, --explicit-package-bases, --allow-untyped-decorators, --allow-subclassing-any, --allow-untyped-call]
32+
args: [--strict, --ignore-missing-imports, --explicit-package-bases, --no-warn-unused-ignores, --allow-untyped-decorators, --allow-subclassing-any, --allow-untyped-call]
3333
additional_dependencies:
3434
- types-requests
3535
- PyQt6-stubs

src/surface/gui/gui/widgets/flood_warning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from rov_msgs.msg import Flooding
1313

1414
# The 'Loop' enum has int values, not 'Loop', unbeknownst to mypy
15-
Q_SOUND_EFFECT_LOOP_FOREVER: int = QSoundEffect.Loop.Infinite.value # [assignment]
15+
Q_SOUND_EFFECT_LOOP_FOREVER: int = QSoundEffect.Loop.Infinite.value # type: ignore[assignment]
1616

1717

1818
class FloodWarning(QWidget):

0 commit comments

Comments
 (0)