From 27ed29cdb8c3ff915f3affef945a0e48bf3282e0 Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Fri, 7 Feb 2025 02:50:10 +0000 Subject: [PATCH] Add some type hint in cli_api.py --- core/cli_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/cli_api.py b/core/cli_api.py index 44107d5..133849d 100644 --- a/core/cli_api.py +++ b/core/cli_api.py @@ -416,12 +416,12 @@ def stop_webpanel(): run_cmd(['bash', Command.SHELL_WEBPANEL.value, 'stop']) -def get_webpanel_url(): +def get_webpanel_url() -> str | None: '''Gets the URL of WebPanel.''' return run_cmd(['bash', Command.SHELL_WEBPANEL.value, 'url']) -def get_webpanel_api_token(): +def get_webpanel_api_token() -> str | None: '''Gets the API token of WebPanel.''' return run_cmd(['bash', Command.SHELL_WEBPANEL.value, 'api-token'])