MCPcopy Create free account
hub / github.com/PyCQA/flake8 / update_checker_state_for

Method update_checker_state_for

src/flake8/processor.py:172–177  ·  view source on GitHub ↗

Update the checker_state attribute for the plugin.

(self, plugin: LoadedPlugin)

Source from the content-addressed store, hash-verified

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."""
174 if "checker_state" in plugin.parameters:
175 self.checker_state = self._checker_states.setdefault(
176 plugin.entry_name, {},
177 )
178
179 def next_logical_line(self) -> None:
180 """Record the previous logical line.

Callers 2

run_logical_checksMethod · 0.80
run_physical_checksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected