Skip to content

Commit

Permalink
Merge pull request #907 from communitiesuk/renovate/mypy-1.x
Browse files Browse the repository at this point in the history
Update dependency mypy to v1.14.1
  • Loading branch information
samuelhwilliams authored Jan 29, 2025
2 parents 131bd0d + 93062f4 commit 3e63358
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ dev = [
"debugpy==1.8.12",
"flask-debugtoolbar==0.16.0",
"freezegun==1.5.1",
"mypy==1.11.2",
"mypy==1.14.1",
"pandas-stubs==1.5.3.230321",
"pre-commit==4.1.0",
"pydot==1.4.2",
Expand Down
6 changes: 4 additions & 2 deletions tests/admin_tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def test_edit_instances(
if should_be_able_to_edit:
# We expect this error if the view was accessed "successfully" (ie user has admin group and the entity
# is configured to allow edits
assert "invalid input syntax for type uuid" in str(ignore_id_error.excinfo), (
excinfo = ignore_id_error.excinfo # type: ignore[union-attr]
assert "invalid input syntax for type uuid" in str(excinfo), (
"Looks like the test thinks you can edit the model, but you actually can't"
)

Expand Down Expand Up @@ -132,7 +133,8 @@ def test_delete_instances(
if should_be_able_to_delete:
# We expect this error if the view was accessed "successfully" (ie user has admin group and the entity
# is configured to allow edits
assert "invalid input syntax for type uuid" in str(ignore_id_error.excinfo), (
excinfo = ignore_id_error.excinfo # type: ignore[union-attr]
assert "invalid input syntax for type uuid" in str(excinfo), (
"Looks like the test thinks you can delete the model, but you actually can't"
)

Expand Down
19 changes: 10 additions & 9 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e63358

Please sign in to comment.