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

Method __len__

src/_pytest/_code/source.py:69–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 return iter(self.lines)
68
69 def __len__(self) -> int:
70 return len(self.lines)
71
72 def strip(self) -> "Source":
73 """Return new Source object with trailing and leading blank lines removed."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected