mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
type: fix mypy warn for fresh unixsocket release
This commit is contained in:
parent
e2efe21a8b
commit
985307a89e
@ -46,8 +46,8 @@ class SyncAhrimanClient(SyncHttpClient):
|
|||||||
request.Session: created session object
|
request.Session: created session object
|
||||||
"""
|
"""
|
||||||
if urlparse(self.address).scheme == "http+unix":
|
if urlparse(self.address).scheme == "http+unix":
|
||||||
import requests_unixsocket # type: ignore[import-untyped]
|
import requests_unixsocket
|
||||||
session: requests.Session = requests_unixsocket.Session()
|
session: requests.Session = requests_unixsocket.Session() # type: ignore[no-untyped-call]
|
||||||
session.headers["User-Agent"] = f"ahriman/{__version__}"
|
session.headers["User-Agent"] = f"ahriman/{__version__}"
|
||||||
return session
|
return session
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user