Skip to content

Commit f3ad450

Browse files
build(deps-dev): bump mypy from 1.6.1 to 1.7.0 (#810)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam Bull <[email protected]>
1 parent 9ec17bd commit f3ad450

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

aiohttp_admin/security.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
_T = TypeVar("_T", bound=Hashable)
1515

1616

17-
@lru_cache
18-
def _get_schema(t: Type[_T]) -> TypeAdapter[_T]:
17+
@lru_cache # https://github.com/python/typeshed/issues/6347
18+
def _get_schema(t: Type[_T]) -> TypeAdapter[_T]: # type: ignore[misc]
1919
return TypeAdapter(t)
2020

2121

2222
def check(t: Type[_T], value: object) -> _T:
2323
"""Validate value is of static type t."""
24-
return _get_schema(t).validate_python(value)
24+
return _get_schema(t).validate_python(value) # type: ignore[no-any-return]
2525

2626

2727
class Permissions(str, Enum):

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ flake8-bandit==4.1.1
55
flake8-bugbear==23.9.16
66
flake8-import-order==0.18.2
77
flake8-requirements==2.0.1
8-
mypy==1.6.1
8+
mypy==1.7.0
99
sphinx==7.2.6

0 commit comments

Comments
 (0)