mirror of https://github.com/scrapy/scrapy.git
Full typing for scrapy/extension.py.
This commit is contained in:
parent
fc1a83e7c4
commit
08a265b6ff
|
|
@ -4,7 +4,10 @@ The Extension Manager
|
|||
See documentation in docs/topics/extensions.rst
|
||||
"""
|
||||
|
||||
from typing import Any, List
|
||||
|
||||
from scrapy.middleware import MiddlewareManager
|
||||
from scrapy.settings import Settings
|
||||
from scrapy.utils.conf import build_component_list
|
||||
|
||||
|
||||
|
|
@ -12,5 +15,5 @@ class ExtensionManager(MiddlewareManager):
|
|||
component_name = "extension"
|
||||
|
||||
@classmethod
|
||||
def _get_mwlist_from_settings(cls, settings):
|
||||
def _get_mwlist_from_settings(cls, settings: Settings) -> List[Any]:
|
||||
return build_component_list(settings.getwithbase("EXTENSIONS"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue