some type fixes
This commit is contained in:
parent
de6ed03ad8
commit
f95d542b2e
|
@ -5,21 +5,23 @@ from hmac import compare_digest as compare_hash
|
|||
import crypt
|
||||
from .model import User
|
||||
import logging
|
||||
from abc import ABC, abstractclassmethod, abstractmethod
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
class AuthProvider:
|
||||
class AuthProvider(ABC):
|
||||
|
||||
@classmethod
|
||||
def get_name(csl):
|
||||
return csl.__name__
|
||||
def get_name(cls):
|
||||
return cls.__name__
|
||||
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def get_form() -> FlaskForm:
|
||||
return
|
||||
...
|
||||
|
||||
@staticmethod
|
||||
def check_auth(user: User, form) -> bool:
|
||||
|
|
Loading…
Reference in a new issue