Skip to content

Commit

Permalink
Add code comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
yilei committed Dec 14, 2022
1 parent 8e7f9f9 commit f84f374
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/black/comments.py
Expand Up @@ -248,6 +248,8 @@ def generate_ignored_nodes(
container.children[index + 1], preview=preview
)
):
# This means `# fmt: on` is placed right after an indentation
# level, and we shouldn't swallow the previous INDENT token.
return
if children_contains_fmt_on(child, preview=preview):
return
Expand Down

0 comments on commit f84f374

Please sign in to comment.