From bd405b3d5a04f13b85e207c0d530233881d88a60 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Wed, 23 Oct 2024 20:58:39 +0200 Subject: [PATCH] Fixed type on expire after --- requests_util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests_util/__init__.py b/requests_util/__init__.py index 3084e91..8dafd8d 100644 --- a/requests_util/__init__.py +++ b/requests_util/__init__.py @@ -71,7 +71,7 @@ def initialize_session() -> requests.Session: def setup_limiter( session: requests.Session, url_prefix: str, - expire_after: datetime.datetime | None = None, + expire_after: datetime.timedelta | None = None, **limiter_args, ) -> requests.Session: """Initializes limiter on session for the given domain with the given