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 29b38ef commit d86d403Copy full SHA for d86d403
wemake_python_styleguide/visitors/tokenize/statements.py
@@ -140,7 +140,7 @@ def _annotate_brackets(
140
tokens: List[tokenize.TokenInfo],
141
) -> Mapping[int, int]:
142
"""Annotates each opening bracket with the nested level index."""
143
- brackets = {bracket: 0 for bracket in MATCHING}
+ brackets = dict.fromkeys(MATCHING, 0)
144
for token in tokens:
145
if token.exact_type in MATCHING.keys():
146
brackets[token.exact_type] += 1
0 commit comments