Skip to content

Commit b900135

Browse files
Making Ruff and mypy happy
1 parent 848bcff commit b900135

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

aws_lambda_powertools/event_handler/bedrock_agent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ def get_openapi_json_schema( # type: ignore[override]
345345
from aws_lambda_powertools.event_handler.openapi.compat import model_json
346346

347347
openapi_extensions = None
348-
security = None
349348

350349
schema = super().get_openapi_schema(
351350
title=title,

aws_lambda_powertools/event_handler/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Any, Mapping
3+
from typing import Any, Dict, List, Mapping
44

55

66
class _FrozenDict(dict):
@@ -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

aws_lambda_powertools/tracing/tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def _patch_xray_provider(self):
819819
# Due to Lazy Import, we need to activate `core` attrib via import
820820
# we also need to include `patch`, `patch_all` methods
821821
# to ensure patch calls are done via the provider
822-
from aws_xray_sdk.core import xray_recorder
822+
from aws_xray_sdk.core import xray_recorder # type: ignore
823823

824824
provider = xray_recorder
825825
provider.patch = aws_xray_sdk.core.patch

ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ runtime-evaluated-base-classes = ["pydantic.BaseModel"]
9797
"aws_lambda_powertools/metrics/metrics.py" = ["ERA001"]
9898
"examples/*" = ["FA100", "TCH"]
9999
"tests/*" = ["FA100", "TCH"]
100-
"aws_lambda_powertools/utilities/parser/models/*" = ["FA100"]
100+
"aws_lambda_powertools/utilities/parser/models/*" = ["FA100"]

0 commit comments

Comments
 (0)