From ad29483651319e8ddc9b6b6805b55faadfca1d74 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..be917ab0 100644 --- a/mautrix_facebook/analytics.py +++ b/mautrix_facebook/analytics.py @@ -1,8 +1,8 @@ from __future__ import annotations -from urllib.parse import urlunparse import logging +from yarl import URL import aiohttp from mautrix.util import background_task @@ -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