зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 05:04:22 +02:00
build fix
Этот коммит содержится в:
родитель
f40c13a3db
Коммит
7b62efb38a
@ -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"
|
||||
@ -70,4 +73,4 @@ line-length = 99
|
||||
line-length = 99
|
||||
|
||||
[tool.hatch.metadata]
|
||||
allow-direct-references = true
|
||||
allow-direct-references = true
|
||||
|
||||
@ -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()
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user