mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
chore: partially drop Union typehint
This commit is contained in:
1 parent
51ccdf7caa
commit
e6d3775fd0
2 files changed
+6
-3
No files matched your search
+4
-1
@@ -1,12 +1,15 @@
|
||||
import logging
|
||||
import requests
|
||||
from typing import Optional
|
||||
from typing import Optional, TYPE_CHECKING
|
||||
|
||||
from dzgui.const.constants import APP_NAME
|
||||
from dzgui.const.endpoints import BM_SERVERS
|
||||
|
||||
logger = logging.getLogger(APP_NAME)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from dzgui.api.servers import Record
|
||||
|
||||
|
||||
def get_attributes(key: str, uid: int) -> str:
|
||||
# TODO: handle if key is not set
|
||||
|
||||
Reference in new issue
Block a user