From 6281c2ef5c529bb62c0868d65b50cf134f215648 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 24 Feb 2025 18:02:47 +0000 Subject: [PATCH] Using iscoroutinefunction over isawaitable in async --- nordpool/elspot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nordpool/elspot.py b/nordpool/elspot.py index 7a40329..4ae67b3 100644 --- a/nordpool/elspot.py +++ b/nordpool/elspot.py @@ -226,7 +226,7 @@ async def _io(self, url, params): resp = await self.client.get(url, params=params) # aiohttp - if inspect.isawaitable(resp.json()): + if inspect.iscoroutinefunction(resp.json): return await resp.json() # Httpx and asks return resp.json()