Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
soundofspace committed Apr 2, 2024
1 parent 8eabb1b commit 9609d30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def crawl(self, *args: Any, **kwargs: Any) -> Generator[Deferred, Any, None]:
yield self.engine.close()
raise

def _create_spider(self, *args: Any, **kwargs: Any) -> Spider:
def _create_spider(self, *args: Any, **kwargs: Any) -> S:
return self.spidercls.from_crawler(self, *args, **kwargs)

def _create_engine(self) -> ExecutionEngine:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"lxml>=4.4.1",
"defusedxml>=0.7.1",
"opentelemetry-api",
"opentelemetry-sdk"
]
extras_require = {
':platform_python_implementation == "CPython"': ["PyDispatcher>=2.0.5"],
Expand Down

0 comments on commit 9609d30

Please sign in to comment.