chore(auth): add a type annotation

pull/209/head
Luis Linares 2025-01-03 15:39:08 +01:00 zatwierdzone przez Florian Ludwig
rodzic b5a11c3e82
commit a911ba7b92
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -3,10 +3,10 @@
# See the file license.txt for copying permission. # See the file license.txt for copying permission.
import logging import logging
from passlib.apps import custom_app_context as pwd_context from passlib.apps import custom_app_context as pwd_context
from amqtt.broker import BrokerContext
class BaseAuthPlugin: class BaseAuthPlugin:
def __init__(self, context): def __init__(self, context: BrokerContext):
self.context = context self.context = context
try: try:
self.auth_config = self.context.config["auth"] self.auth_config = self.context.config["auth"]