MCPcopy
hub / github.com/scrapy/scrapy / get_addon_cls

Function get_addon_cls

tests/test_addons.py:18–23  ·  view source on GitHub ↗
(config: dict[str, Any])

Source from the content-addressed store, hash-verified

16
17
18def get_addon_cls(config: dict[str, Any]) -> type:
19 class AddonWithConfig:
20 def update_settings(self, settings: BaseSettings):
21 settings.update(config, priority="addon")
22
23 return AddonWithConfig
24
25
26class CreateInstanceAddon:

Callers 4

test_update_settingsMethod · 0.85
from_crawlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected