mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
013be33b20
commit
5a090c47ad
@@ -1,7 +1,7 @@
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
from collections.abc import Callable, Iterator
|
||||
from collections.abc import AsyncIterator, Callable, Iterator
|
||||
from urllib.parse import urlsplit
|
||||
|
||||
import scrapy
|
||||
@@ -202,9 +202,10 @@ class BaseDocumentationSpider(scrapy.Spider):
|
||||
)
|
||||
|
||||
@override
|
||||
def start_requests(self) -> Iterator[Request]:
|
||||
async def start(self) -> AsyncIterator[Request]:
|
||||
for url in self.start_urls:
|
||||
yield from self._make_requests(url)
|
||||
for request in self._make_requests(url):
|
||||
yield request
|
||||
|
||||
@override
|
||||
def parse(self, response: Response) -> Iterator[Request]:
|
||||
|
||||
Reference in New Issue
Block a user