We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5b07cd commit 03a61b0Copy full SHA for 03a61b0
autoflake.py
@@ -205,7 +205,10 @@ def create_key_to_messages_dict(
205
messages: Iterable[pyflakes.messages.MultiValueRepeatedKeyLiteral],
206
) -> Mapping[Any, Iterable[pyflakes.messages.MultiValueRepeatedKeyLiteral]]:
207
"""Return dict mapping the key to list of messages."""
208
- dictionary = collections.defaultdict(list)
+ dictionary: dict[
209
+ Any,
210
+ list[pyflakes.messages.MultiValueRepeatedKeyLiteral],
211
+ ] = collections.defaultdict(list)
212
for message in messages:
213
dictionary[message.message_args[0]].append(message)
214
return dictionary
0 commit comments