From 78f6624e85dc065eccc28957d5b840d29fbdf733 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Sat, 11 Jul 2026 23:13:51 +0500 Subject: [PATCH] Trim ISpiderLoader. --- scrapy/interfaces.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/scrapy/interfaces.py b/scrapy/interfaces.py index 9a1631947..34d7bdd82 100644 --- a/scrapy/interfaces.py +++ b/scrapy/interfaces.py @@ -14,16 +14,10 @@ warnings.warn( class ISpiderLoader(Interface): - def from_settings(settings): - """Return an instance of the class for the given settings""" + def from_settings(settings): ... - def load(spider_name): - """Return the Spider class for the given spider name. If the spider - name is not found, it must raise a KeyError.""" + def load(spider_name): ... - def list(): - """Return a list with the names of all spiders available in the - project""" + def list(): ... - def find_by_request(request): - """Return the list of spiders names that can handle the given request""" + def find_by_request(request): ...