Skip to content

Commit

Permalink
Update src/black/trans.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
yilei and JelleZijlstra authored Dec 15, 2022
1 parent 6aa7d6e commit ba1b968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -1853,7 +1853,7 @@ def _dict_or_lambda_match(LL: List[Leaf]) -> Optional[int]:
OR
None, otherwise.
"""
# If this line is apart of a dictionary key assignment or lambda expression...
# If this line is a part of a dictionary key assignment or lambda expression...
parent_types = [parent_type(LL[0]), parent_type(LL[0].parent)]
if syms.dictsetmaker in parent_types or syms.lambdef in parent_types:
is_valid_index = is_valid_index_factory(LL)
Expand Down

0 comments on commit ba1b968

Please sign in to comment.