Skip to content

Commit cf558d4

Browse files
Bump urllib3 version
2 parents df1b814 + 88851c8 commit cf558d4

4 files changed

Lines changed: 32 additions & 22 deletions

File tree

aws_lambda_powertools/utilities/data_classes/common.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ def __getitem__(self, k):
7171
def __setitem__(self, k, v):
7272
super().__setitem__(k.lower(), v)
7373

74+
def __hash__(self):
75+
# Convert the dictionary to a frozenset of tuples (key, value)
76+
# where all keys are lowercase
77+
items = frozenset((k.lower(), v) for k, v in self.items())
78+
return hash(items)
79+
7480

7581
class DictWrapper(Mapping):
7682
"""Provides a single read only access to a wrapper dict"""
@@ -154,6 +160,9 @@ def raw_event(self) -> dict[str, Any]:
154160
"""The original raw event dict"""
155161
return self._data
156162

163+
def __hash__(self):
164+
return hash(self._data)
165+
157166

158167
class BaseProxyEvent(DictWrapper):
159168
@property

poetry.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ types-python-dateutil = "^2.8.19.6"
120120
aws-cdk-aws-appsync-alpha = "^2.59.0a0"
121121
httpx = ">=0.23.3,<0.29.0"
122122
sentry-sdk = ">=1.22.2,<3.0.0"
123-
ruff = ">=0.5.1,<0.11.14"
123+
ruff = ">=0.5.1,<0.12.2"
124124
retry2 = "^0.9.5"
125125
pytest-socket = ">=0.6,<0.8"
126126
types-redis = "^4.6.0.7"

ruff.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ lint.ignore = [
3939
"PLC1901", # Compare-to-empty-string - disabled temporarily
4040
"PYI024",
4141
"A005",
42-
"TC006" # https://docs.astral.sh/ruff/rules/runtime-cast-value/
42+
"TC006", # https://docs.astral.sh/ruff/rules/runtime-cast-value/
43+
"PLC0415", # https://docs.astral.sh/ruff/rules/import-outside-top-level/
4344
]
4445

4546
# Exclude files and directories

0 commit comments

Comments
 (0)