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

Method __len__

src/_pytest/mark/structures.py:590–592  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

588 yield keyword
589
590 def __len__(self) -> int:
591 # Doesn't need to be fast.
592 return sum(1 for keyword in self)
593
594 def __repr__(self) -> str:
595 return f"<NodeKeywords for node {self.node}>"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected