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