refactor: use square brackets for tuple type hint
This commit is contained in:
parent
a576ed9f3a
commit
d2cfc6652d
1 changed files with 3 additions and 2 deletions
|
@ -33,6 +33,7 @@ from .docstrings import (append_docstring,
|
||||||
proxy_docstring,
|
proxy_docstring,
|
||||||
tag_docstring)
|
tag_docstring)
|
||||||
|
|
||||||
|
|
||||||
def int_to_bool(data, keys) -> None:
|
def int_to_bool(data, keys) -> None:
|
||||||
if isinstance(data, list):
|
if isinstance(data, list):
|
||||||
for d in data:
|
for d in data:
|
||||||
|
@ -147,7 +148,7 @@ def _build_status_page_data(
|
||||||
|
|
||||||
icon: str = "/icon.svg",
|
icon: str = "/icon.svg",
|
||||||
publicGroupList: list = None
|
publicGroupList: list = None
|
||||||
) -> tuple(str, dict, str, list):
|
) -> tuple[str, dict, str, list]:
|
||||||
if theme not in ["light", "dark"]:
|
if theme not in ["light", "dark"]:
|
||||||
raise ValueError
|
raise ValueError
|
||||||
if not domainNameList:
|
if not domainNameList:
|
||||||
|
|
Loading…
Reference in a new issue