Skip to content

Commit

Permalink
Move before/after to init
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 committed Oct 7, 2022
1 parent 524cc6b commit e0e60ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/black/lines.py
Expand Up @@ -505,9 +505,9 @@ def maybe_empty_lines(self, current_line: Line) -> LinesBlock:
mode=self.mode,
previous_block=self.previous_block,
is_class=current_line.is_class,
before=before,
after=after,
)
block.before = before
block.after = after

# Maintain the semantic_leading_comment state.
if current_line.is_comment:
Expand Down

0 comments on commit e0e60ff

Please sign in to comment.