diff --git a/pyproject.toml b/pyproject.toml index 577719b..00130cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 \ No newline at end of file +allow-direct-references = true diff --git a/twscrape/queue_client.py b/twscrape/queue_client.py index 1391e1c..1210798 100644 --- a/twscrape/queue_client.py +++ b/twscrape/queue_client.py @@ -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()