Skip to content

Commit

Permalink
Ignore mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Dec 9, 2024
1 parent bb3261d commit 1fdbe3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/manager/integration/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ class NoAdditionalSettings(BaseSettings): ...
assert form == []

class BadAdditionalSettings(BaseSettings):
# This should be a dict, but we handle it gracefully
_additional_form_fields = 1
# This should be a dict, but we handle it gracefully. We ignore the
# type error here because we are testing for it.
_additional_form_fields = 1 # type: ignore[assignment]

form = BadAdditionalSettings().configuration_form(MagicMock())
assert form == []
Expand Down

0 comments on commit 1fdbe3d

Please sign in to comment.