Skip to content

Commit 03a61b0

Browse files
committed
autoflake: add missing type annotation
1 parent b5b07cd commit 03a61b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoflake.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ def create_key_to_messages_dict(
205205
messages: Iterable[pyflakes.messages.MultiValueRepeatedKeyLiteral],
206206
) -> Mapping[Any, Iterable[pyflakes.messages.MultiValueRepeatedKeyLiteral]]:
207207
"""Return dict mapping the key to list of messages."""
208-
dictionary = collections.defaultdict(list)
208+
dictionary: dict[
209+
Any,
210+
list[pyflakes.messages.MultiValueRepeatedKeyLiteral],
211+
] = collections.defaultdict(list)
209212
for message in messages:
210213
dictionary[message.message_args[0]].append(message)
211214
return dictionary

0 commit comments

Comments
 (0)