Skip to content

Commit 5705266

Browse files
mypy....
1 parent 8f6cb17 commit 5705266

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ def _openapi_operation_parameters(
703703
from aws_lambda_powertools.event_handler.openapi.params import Param
704704

705705
parameters = []
706+
parameter: Dict[str, Any]
706707
for param in all_route_params:
707708
field_info = param.field_info
708709
field_info = cast(Param, field_info)

aws_lambda_powertools/event_handler/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict
1+
from typing import Any, Dict, FrozenSet, List
22

33
from aws_lambda_powertools.utilities.data_classes.shared_functions import get_header_value
44

@@ -18,7 +18,7 @@ def __hash__(self):
1818
return hash(frozenset(self.keys()))
1919

2020

21-
class _FrozenListDict(list[dict[str, list[str]]]):
21+
class _FrozenListDict(List[Dict[str, List[str]]]):
2222
"""
2323
Freezes a list of dictionaries containing lists of strings.
2424
@@ -36,7 +36,7 @@ class _FrozenListDict(list[dict[str, list[str]]]):
3636
"""
3737

3838
def __hash__(self):
39-
return hash(frozenset({_FrozenDict({key: frozenset(self) for key, self in item.items()}) for item in self}))
39+
return hash(FrozenSet({_FrozenDict({key: FrozenSet(self) for key, self in item.items()}) for item in self}))
4040

4141

4242
def extract_origin_header(resolver_headers: Dict[str, Any]):

0 commit comments

Comments
 (0)