Skip to content

Commit 3101a42

Browse files
Add typing to dict default factory
1 parent 8fd33e2 commit 3101a42

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/smithy-aws-event-stream/src/smithy_aws_event_stream/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class EventMessage:
187187
message.
188188
"""
189189

190-
headers: HEADERS_DICT = field(default_factory=dict)
190+
headers: HEADERS_DICT = field(default_factory=dict[str, HEADER_VALUE])
191191
"""The headers present in the event message.
192192
193193
Sized integer values may be indicated for the purpose of serialization

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies = []
1010
dev = [
1111
"black>=25.1.0",
1212
"docformatter>=1.7.5",
13-
"pyright>=1.1.396",
13+
"pyright>=1.1.398",
1414
"pytest>=8.3.4",
1515
"pytest-asyncio>=0.25.3",
1616
"pytest-cov>=6.0.0",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)