kopia lustrzana https://github.com/Yakifo/amqtt
chore(auth): add a type annotation
rodzic
b5a11c3e82
commit
a911ba7b92
|
@ -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"]
|
||||||
|
|
Ładowanie…
Reference in New Issue