Update the indent level based on the logical line mapping.
(self, mapping: _LogicalMapping)
| 162 | self.blank_lines += 1 |
| 163 | |
| 164 | def update_state(self, mapping: _LogicalMapping) -> None: |
| 165 | """Update the indent level based on the logical line mapping.""" |
| 166 | (start_row, start_col) = mapping[0][1] |
| 167 | start_line = self.lines[start_row - 1] |
| 168 | self.indent_level = expand_indent(start_line[:start_col]) |
| 169 | if self.blank_before < self.blank_lines: |
| 170 | self.blank_before = self.blank_lines |
| 171 | |
| 172 | def update_checker_state_for(self, plugin: LoadedPlugin) -> None: |
| 173 | """Update the checker_state attribute for the plugin.""" |
no test coverage detected