Skip to content

Commit 194c334

Browse files
Add typing to dict default factory
1 parent 9effd3a commit 194c334

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

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

190-
# Pyright is complaining about the return type of the default_factory here being
191-
# unknown. See https://github.com/microsoft/pyright/issues/10277
192-
headers: HEADERS_DICT = field(default_factory=dict) # pyright: ignore [reportUnknownVariableType]
190+
headers: HEADERS_DICT = field(default_factory=dict[str, HEADER_VALUE])
193191
"""The headers present in the event message.
194192
195193
Sized integer values may be indicated for the purpose of serialization

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)