Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and wannieman98 committed Feb 5, 2024
1 parent f7e1621 commit f514570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/black/trans.py
Expand Up @@ -183,7 +183,7 @@ def handle_is_simple_look_up_prev(line: Line, index: int, disallowed: Set[int])
"""
Handling the determination of is_simple_lookup for the lines prior to the doublestar
token. This is required because of the need to isolate the chained expression
to determine the bracket or parenthesis belong to the single expression.
to determine the bracket or parenthesis belong to the single expression.
"""
contains_disallowed = False
chain = []
Expand All @@ -207,7 +207,7 @@ def handle_is_simple_lookup_forward(
"""
Handling decision is_simple_lookup for the lines behind to the doublestar token.
This function is simplified to keep consistent with the prior logic and the forward
case are more straightforward and do not need to care about chained expressions.
case are more straightforward and do not need to care about chained expressions.
"""
while 0 <= index < len(line.leaves):
current = line.leaves[index]
Expand Down

0 comments on commit f514570

Please sign in to comment.