flakeheaven._patched._violation

class flakeheaven._patched._violation.FlakeHeavenViolation(code, filename, line_number, column_number, text, physical_line, plugin)[source]

Bases: flakeheaven._patched._violation._Violation

Patched flake8.style_guide.Violation

We can’t just inherit because Violation is a namedtuple, and we can’t add new fields.

Create new instance of _Violation(code, filename, line_number, column_number, text, physical_line, plugin)

is_in(diff)[source]
is_inline_ignored(disable_noqa)[source]
class flakeheaven._patched._violation._Violation(code, filename, line_number, column_number, text, physical_line, plugin)

Bases: tuple

Create new instance of _Violation(code, filename, line_number, column_number, text, physical_line, plugin)

_asdict()

Return a new OrderedDict which maps field names to their values.

_field_defaults = {}
_fields = ('code', 'filename', 'line_number', 'column_number', 'text', 'physical_line', 'plugin')
_fields_defaults = {}
classmethod _make(iterable)

Make a new _Violation object from a sequence or iterable

_replace(**kwds)

Return a new _Violation object replacing specified fields with new values

property code

Alias for field number 0

property column_number

Alias for field number 3

property filename

Alias for field number 1

property line_number

Alias for field number 2

property physical_line

Alias for field number 5

property plugin

Alias for field number 6

property text

Alias for field number 4