MCPcopy
hub / github.com/scrapy/scrapy / __init__

Method __init__

tests/test_scheduler.py:32–37  ·  view source on GitHub ↗
(self, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

30 paused = False
31
32 def __init__(self, *args: Any, **kwargs: Any):
33 super().__init__(*args, **kwargs)
34 self.queue: deque[Request] = deque(
35 Request(value) if isinstance(value, str) else value
36 for value in getattr(self, "queue", [])
37 )
38
39 def enqueue_request(self, request: Request) -> bool:
40 self.queue.append(request)

Callers

nothing calls this directly

Calls 2

RequestClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected