IgnoreArea

class IgnoreArea(x1: int, y1: int, x2: int, y2: int)[source]

Container for odiff ignore are definitions.

Create new instance of IgnoreArea(x1, y1, x2, y2)

Attributes Summary

__annotations__

__doc__

__match_args__

__module__

__orig_bases__

__slots__

_field_defaults

_fields

x1

Alias for field number 0

x2

Alias for field number 2

y1

Alias for field number 1

y2

Alias for field number 3

Methods Summary

__add__

Return self+value.

__class_getitem__

See PEP 585

__contains__

Return key in self.

__delattr__

Implement delattr(self, name).

__dir__

Default dir() implementation.

__eq__

Return self==value.

__format__

Default object formatter.

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__getitem__

Return self[key].

__getnewargs__

Return self as a plain tuple.

__gt__

Return self>value.

__hash__

Return hash(self).

__init__

__init_subclass__

This method is called when a class is subclassed.

__iter__

Implement iter(self).

__le__

Return self<=value.

__len__

Return len(self).

__lt__

Return self<value.

__mul__

Return self*value.

__ne__

Return self!=value.

__new__

Create new instance of IgnoreArea(x1, y1, x2, y2)

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__repr__

Return a nicely formatted representation string

__rmul__

Return value*self.

__setattr__

Implement setattr(self, name, value).

__sizeof__

Size of object in memory, in bytes.

__str__

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

_asdict

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

_make

Make a new IgnoreArea object from a sequence or iterable

_replace

Return a new IgnoreArea object replacing specified fields with new values

count

Return number of occurrences of value.

index

Return first index of value.

to_region_str

Format to odiff CLI argument.

Methods Documentation

__add__(value, /)

Return self+value.

__class_getitem__()

See PEP 585

__contains__(key, /)

Return key in self.

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__(value, /)

Return self==value.

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__getitem__(key, /)

Return self[key].

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__gt__(value, /)

Return self>value.

__hash__()

Return hash(self).

__init__()
__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__iter__()

Implement iter(self).

__le__(value, /)

Return self<=value.

__len__()

Return len(self).

__lt__(value, /)

Return self<value.

__mul__(value, /)

Return self*value.

__ne__(value, /)

Return self!=value.

static __new__(_cls, x1: int, y1: int, x2: int, y2: int)

Create new instance of IgnoreArea(x1, y1, x2, y2)

__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__()

Return a nicely formatted representation string

__rmul__(value, /)

Return value*self.

__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

_asdict()

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

classmethod _make(iterable)

Make a new IgnoreArea object from a sequence or iterable

_replace(**kwds)

Return a new IgnoreArea object replacing specified fields with new values

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

to_region_str() str[source]

Format to odiff CLI argument.

Return type:

str