From 985307a89ec58cad2c53d058c318f3ec3d7f6f4c Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Wed, 17 Jul 2024 17:08:00 +0300 Subject: [PATCH] type: fix mypy warn for fresh unixsocket release --- src/ahriman/core/http/sync_ahriman_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ahriman/core/http/sync_ahriman_client.py b/src/ahriman/core/http/sync_ahriman_client.py index a3cc3b6b..9c30258a 100644 --- a/src/ahriman/core/http/sync_ahriman_client.py +++ b/src/ahriman/core/http/sync_ahriman_client.py @@ -46,8 +46,8 @@ class SyncAhrimanClient(SyncHttpClient): request.Session: created session object """ if urlparse(self.address).scheme == "http+unix": - import requests_unixsocket # type: ignore[import-untyped] - session: requests.Session = requests_unixsocket.Session() + import requests_unixsocket + session: requests.Session = requests_unixsocket.Session() # type: ignore[no-untyped-call] session.headers["User-Agent"] = f"ahriman/{__version__}" return session