From f0073062f58270d90213e68d830fae0a77461dec Mon Sep 17 00:00:00 2001 From: John Newman Date: Mon, 9 Oct 2023 16:18:46 +0100 Subject: [PATCH] add yarl URL import and type hinting --- mautrix_facebook/analytics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mautrix_facebook/analytics.py b/mautrix_facebook/analytics.py index 7e53fe8a..0d35f31a 100644 --- a/mautrix_facebook/analytics.py +++ b/mautrix_facebook/analytics.py @@ -1,6 +1,6 @@ from __future__ import annotations -from urllib.parse import urlunparse +from yarl import URL import logging import aiohttp @@ -11,7 +11,7 @@ log = logging.getLogger("mau.web.public.analytics") http: aiohttp.ClientSession | None = None -analytics_url: str | None = None +analytics_url: URL | None = None analytics_token: str | None = None analytics_user_id: str | None = None