Этот коммит содержится в:
Vlad Pronsky 2023-12-27 01:07:04 +02:00
родитель f40c13a3db
Коммит 7b62efb38a
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1,7 +1,10 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling>=1.9.1"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["twscrape"]
[project]
name = "twscrape"
version = "0.9.0"

Просмотреть файл

@ -181,7 +181,7 @@ class QueueClient:
async def get(self, url: str, params: ReqParams = None):
return await self.req("GET", url, params=params)
async def req(self, method: str, url: str, params: ReqParams = None):
async def req(self, method: str, url: str, params: ReqParams = None) -> httpx.Response | None:
retry_count = 0
while True:
ctx = await self._get_ctx()