From f95d542b2ef15762964b1545d7a30aede362ea1c Mon Sep 17 00:00:00 2001 From: tuxcoder Date: Mon, 20 May 2024 12:40:34 +0200 Subject: [PATCH] some type fixes --- lenticular_cloud/auth_providers.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lenticular_cloud/auth_providers.py b/lenticular_cloud/auth_providers.py index 6c2cda3..2a097a7 100644 --- a/lenticular_cloud/auth_providers.py +++ b/lenticular_cloud/auth_providers.py @@ -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: