Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Dec 26, 2023
1 parent f40c13a commit 7b62efb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -70,4 +73,4 @@ line-length = 99
line-length = 99

[tool.hatch.metadata]
allow-direct-references = true
allow-direct-references = true
2 changes: 1 addition & 1 deletion twscrape/queue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async def _check_rep(self, rep: httpx.Response) -> None:
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()
Expand Down

0 comments on commit 7b62efb

Please sign in to comment.