MCPcopy Create free account
hub / github.com/pytest-dev/pytest / __eq__

Method __eq__

src/_pytest/_code/source.py:40–43  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

38 self.lines = deindent(src.split("\n"))
39
40 def __eq__(self, other: object) -> bool:
41 if not isinstance(other, Source):
42 return NotImplemented
43 return self.lines == other.lines
44
45 # Ignore type because of https://github.com/python/mypy/issues/4266.
46 __hash__ = None # type: ignore

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected