refactor: use square brackets for tuple type hint

This commit is contained in:
lucasheld 2023-05-06 13:36:26 +02:00
parent a576ed9f3a
commit d2cfc6652d

View file

@ -13,7 +13,7 @@ import requests
import socketio
from packaging.version import parse as parse_version
from . import (AuthMethod,
from . import (AuthMethod,
DockerType,
Event,
IncidentStyle,
@ -33,6 +33,7 @@ from .docstrings import (append_docstring,
proxy_docstring,
tag_docstring)
def int_to_bool(data, keys) -> None:
if isinstance(data, list):
for d in data:
@ -147,7 +148,7 @@ def _build_status_page_data(
icon: str = "/icon.svg",
publicGroupList: list = None
) -> tuple(str, dict, str, list):
) -> tuple[str, dict, str, list]:
if theme not in ["light", "dark"]:
raise ValueError
if not domainNameList: