mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
new typing style
This commit is contained in:
@@ -20,8 +20,6 @@
|
||||
# ========================================================================== #
|
||||
|
||||
|
||||
from typing import Type
|
||||
|
||||
from .. import BasePlugin
|
||||
from .. import get_plugin_class
|
||||
|
||||
@@ -36,5 +34,5 @@ class BaseAuthService(BasePlugin):
|
||||
|
||||
|
||||
# =====
|
||||
def get_auth_service_class(name: str) -> Type[BaseAuthService]:
|
||||
def get_auth_service_class(name: str) -> type[BaseAuthService]:
|
||||
return get_plugin_class("auth", name) # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user