Skip to content

Commit d86d403

Browse files
authored
Update statements.py (#2994)
* Update statements.py * Update statements.py
1 parent 29b38ef commit d86d403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wemake_python_styleguide/visitors/tokenize/statements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _annotate_brackets(
140140
tokens: List[tokenize.TokenInfo],
141141
) -> Mapping[int, int]:
142142
"""Annotates each opening bracket with the nested level index."""
143-
brackets = {bracket: 0 for bracket in MATCHING}
143+
brackets = dict.fromkeys(MATCHING, 0)
144144
for token in tokens:
145145
if token.exact_type in MATCHING.keys():
146146
brackets[token.exact_type] += 1

0 commit comments

Comments
 (0)