MCPcopy
hub / github.com/PyCQA/flake8 / noqa_line_for

Method noqa_line_for

src/flake8/processor.py:315–320  ·  view source on GitHub ↗

Retrieve the line which will be used to determine noqa.

(self, line_number: int)

Source from the content-addressed store, hash-verified

313 return ret
314
315 def noqa_line_for(self, line_number: int) -> str | None:
316 """Retrieve the line which will be used to determine noqa."""
317 # NOTE(sigmavirus24): Some plugins choose to report errors for empty
318 # files on Line 1. In those cases, we shouldn't bother trying to
319 # retrieve a physical line (since none exist).
320 return self._noqa_line_mapping.get(line_number)
321
322 def next_line(self) -> str:
323 """Get the next line from the list."""

Callers 4

test_noqa_line_forFunction · 0.95
reportMethod · 0.80

Calls

no outgoing calls