removed Final import because of python3.7 backwards compatibility

This commit is contained in:
Duarte Figueiredo 2023-04-19 12:01:07 +01:00
parent cad45ecd2c
commit 592d08c082
2 changed files with 7 additions and 9 deletions

View file

@ -19,7 +19,6 @@ Parameters:
""" """
import shutil import shutil
from typing import Final
import requests import requests
@ -28,10 +27,10 @@ import core.input
import core.module import core.module
import core.widget import core.widget
HOST_API: Final[str] = "https://api.todoist.com" HOST_API = "https://api.todoist.com"
HOST_WEBSITE: Final[str] = "https://todoist.com/app/today" 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): class Module(core.module.Module):

View file

@ -28,7 +28,6 @@ Parameters:
import base64 import base64
import shutil import shutil
import time import time
from typing import Final, List
import requests import requests
@ -37,10 +36,10 @@ import core.input
import core.module import core.module
import core.widget import core.widget
HOST_API: Final[str] = "https://wakatime.com" HOST_API = "https://wakatime.com"
SUMMARIES_URL: Final[str] = f"{HOST_API}/api/v1/users/current/summaries" SUMMARIES_URL = f"{HOST_API}/api/v1/users/current/summaries"
UTF8: Final[str] = "utf-8" UTF8 = "utf-8"
FORMAT_PARAMETERS: Final[List[str]] = ["decimal", "digital", "seconds", "text"] FORMAT_PARAMETERS = ["decimal", "digital", "seconds", "text"]
class Module(core.module.Module): class Module(core.module.Module):