MCPcopy
hub / github.com/scrapy/scrapy / __len__

Method __len__

scrapy/pqueues.py:435–436  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433 return active
434
435 def __len__(self) -> int:
436 return sum(len(x) for x in self.pqueues.values()) if self.pqueues else 0
437
438 def __contains__(self, slot: str) -> bool:
439 return slot in self.pqueues

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected