some type fixes

This commit is contained in:
tuxcoder 2024-05-20 12:40:34 +02:00
parent de6ed03ad8
commit f95d542b2e

View file

@ -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: