From 592d08c082d84c6f7e654c6b575032f5955aecd9 Mon Sep 17 00:00:00 2001 From: Duarte Figueiredo Date: Wed, 19 Apr 2023 12:01:07 +0100 Subject: [PATCH] removed Final import because of python3.7 backwards compatibility --- bumblebee_status/modules/contrib/todoist.py | 7 +++---- bumblebee_status/modules/contrib/wakatime.py | 9 ++++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/bumblebee_status/modules/contrib/todoist.py b/bumblebee_status/modules/contrib/todoist.py index c254139..5fae228 100644 --- a/bumblebee_status/modules/contrib/todoist.py +++ b/bumblebee_status/modules/contrib/todoist.py @@ -19,7 +19,6 @@ Parameters: """ import shutil -from typing import Final import requests @@ -28,10 +27,10 @@ import core.input import core.module import core.widget -HOST_API: Final[str] = "https://api.todoist.com" -HOST_WEBSITE: Final[str] = "https://todoist.com/app/today" +HOST_API = "https://api.todoist.com" +HOST_WEBSITE = "https://todoist.com/app/today" -TASKS_URL: Final[str] = f"{HOST_API}/rest/v2/tasks" +TASKS_URL = f"{HOST_API}/rest/v2/tasks" class Module(core.module.Module): diff --git a/bumblebee_status/modules/contrib/wakatime.py b/bumblebee_status/modules/contrib/wakatime.py index 7e4e33e..1ac4461 100644 --- a/bumblebee_status/modules/contrib/wakatime.py +++ b/bumblebee_status/modules/contrib/wakatime.py @@ -28,7 +28,6 @@ Parameters: import base64 import shutil import time -from typing import Final, List import requests @@ -37,10 +36,10 @@ import core.input import core.module import core.widget -HOST_API: Final[str] = "https://wakatime.com" -SUMMARIES_URL: Final[str] = f"{HOST_API}/api/v1/users/current/summaries" -UTF8: Final[str] = "utf-8" -FORMAT_PARAMETERS: Final[List[str]] = ["decimal", "digital", "seconds", "text"] +HOST_API = "https://wakatime.com" +SUMMARIES_URL = f"{HOST_API}/api/v1/users/current/summaries" +UTF8 = "utf-8" +FORMAT_PARAMETERS = ["decimal", "digital", "seconds", "text"] class Module(core.module.Module):