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

Method _noqa_line_range

src/flake8/processor.py:281–284  ·  view source on GitHub ↗
(self, min_line: int, max_line: int)

Source from the content-addressed store, hash-verified

279 yield token
280
281 def _noqa_line_range(self, min_line: int, max_line: int) -> dict[int, str]:
282 line_range = range(min_line, max_line + 1)
283 joined = "".join(self.lines[min_line - 1: max_line])
284 return dict.fromkeys(line_range, joined)
285
286 @functools.cached_property
287 def _noqa_line_mapping(self) -> dict[int, str]:

Callers 1

_noqa_line_mappingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected