mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
mypy fix
This commit is contained in:
@@ -37,7 +37,7 @@ class Plugin(BaseAuthService):
|
||||
self.__path = path
|
||||
|
||||
@classmethod
|
||||
def get_plugin_options(cls) -> Dict[str, Option]:
|
||||
def get_plugin_options(cls) -> Dict:
|
||||
return {
|
||||
"file": Option("/etc/kvmd/htpasswd", type=valid_abs_path_exists, unpack_as="path"),
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class Plugin(BaseAuthService):
|
||||
self.__http_session: Optional[aiohttp.ClientSession] = None
|
||||
|
||||
@classmethod
|
||||
def get_plugin_options(cls) -> Dict[str, Option]:
|
||||
def get_plugin_options(cls) -> Dict:
|
||||
return {
|
||||
"url": Option("http://localhost/auth"),
|
||||
"verify": Option(True, type=valid_bool),
|
||||
|
||||
Reference in New Issue
Block a user