From c3503bc241be73d8c4a090492edea3a0f3b78d10 Mon Sep 17 00:00:00 2001 From: thearchitector Date: Thu, 11 Apr 2024 10:12:24 -0400 Subject: [PATCH] fix: cleanup --- indico/client/client.py | 9 --------- indico/http/retry.py | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/indico/client/client.py b/indico/client/client.py index 1489a6e9..b25db3cd 100644 --- a/indico/client/client.py +++ b/indico/client/client.py @@ -251,12 +251,3 @@ async def paginate( while request.has_next_page: r = await self._http.execute_request(request) yield r - - -# class test(GraphQLRequest[int]): -# def process_response(self, response: "Payload") -> int: -# a: "Payload" = super().parse_payload(response) -# return a["a"] - - -# a: str = IndicoClient().call(test(query="")) diff --git a/indico/http/retry.py b/indico/http/retry.py index 2cfb6fc1..85ed1850 100644 --- a/indico/http/retry.py +++ b/indico/http/retry.py @@ -2,10 +2,10 @@ import time from functools import wraps from random import randint -from typing import TYPE_CHECKING, Awaitable +from typing import TYPE_CHECKING if TYPE_CHECKING: # pragma: no cover - from typing import Callable, Optional, Tuple, Type, TypeVar, Union + from typing import Awaitable, Callable, Optional, Tuple, Type, TypeVar, Union from typing_extensions import ParamSpec