File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
_T = TypeVar ("_T" , bound = Hashable )
15
15
16
16
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]
19
19
return TypeAdapter (t )
20
20
21
21
22
22
def check (t : Type [_T ], value : object ) -> _T :
23
23
"""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]
25
25
26
26
27
27
class Permissions (str , Enum ):
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ flake8-bandit==4.1.1
5
5
flake8-bugbear == 23.9.16
6
6
flake8-import-order == 0.18.2
7
7
flake8-requirements == 2.0.1
8
- mypy == 1.6.1
8
+ mypy == 1.7.0
9
9
sphinx == 7.2.6
You can’t perform that action at this time.
0 commit comments