Skip to content

Commit

Permalink
Bump django-stubs from 5.0.2 to 5.0.4 (#1193)
Browse files Browse the repository at this point in the history
* Bump django-stubs from 5.0.2 to 5.0.4

Bumps [django-stubs](https://github.com/typeddjango/django-stubs) from 5.0.2 to 5.0.4.
- [Release notes](https://github.com/typeddjango/django-stubs/releases)
- [Commits](typeddjango/django-stubs@5.0.2...5.0.4)

---
updated-dependencies:
- dependency-name: django-stubs
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Reduce type strictness

* Remove lint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: iamacook <[email protected]>
  • Loading branch information
dependabot[bot] and iamacook authored Aug 5, 2024
1 parent 0180652 commit 97a7e84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ responses==0.25.3

# mypy and PEP 561 stubs
mypy==1.11.0
django-stubs==5.0.2
django-stubs==5.0.4
djangorestframework-stubs==3.15.0
types-requests==2.32.0.20240712
2 changes: 1 addition & 1 deletion src/safe_apps/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ChainIdFilter(admin.SimpleListFilter):
title = "Chains"
parameter_name = "chain_ids"

def lookups(self, request: Any, model_admin: Any) -> list[tuple[Any, str]]:
def lookups(self, request: Any, model_admin: Any) -> Any:
values = SafeApp.objects.values_list("chain_ids", flat=True)
# lookups requires a tuple to be returned – (value, verbose value)
chains = [(chain, chain) for chains in values for chain in chains]
Expand Down

0 comments on commit 97a7e84

Please sign in to comment.