Skip to content

Commit

Permalink
also reset local blank_lines variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Mar 20, 2024
1 parent dd8c32e commit d543e72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,10 @@ impl<'a> Iterator for LinePreprocessor<'a> {
{
self.is_beginning_of_cell = true;
cell_offsets.next();
blank_lines = BlankLines::Many {
count: NonZeroU32::new(1).unwrap(),
range: *range,
};
self.max_preceding_blank_lines = BlankLines::Many {
count: NonZeroU32::new(1).unwrap(),
range: *range,
Expand Down

0 comments on commit d543e72

Please sign in to comment.