diff options
Diffstat (limited to 'slixmpp/features/feature_preapproval')
-rw-r--r-- | slixmpp/features/feature_preapproval/preapproval.py | 4 | ||||
-rw-r--r-- | slixmpp/features/feature_preapproval/stanza.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/slixmpp/features/feature_preapproval/preapproval.py b/slixmpp/features/feature_preapproval/preapproval.py index 5dceeb06..46fbaeec 100644 --- a/slixmpp/features/feature_preapproval/preapproval.py +++ b/slixmpp/features/feature_preapproval/preapproval.py @@ -1,4 +1,3 @@ - # Slixmpp: The Slick XMPP Library # Copyright (C) 2012 Nathanael C. Fritz # This file is part of Slixmpp. @@ -9,6 +8,7 @@ from slixmpp.stanza import StreamFeatures from slixmpp.features.feature_preapproval import stanza from slixmpp.xmlstream import register_stanza_plugin from slixmpp.plugins.base import BasePlugin +from typing import ClassVar, Set log = logging.getLogger(__name__) @@ -18,7 +18,7 @@ class FeaturePreApproval(BasePlugin): name = 'feature_preapproval' description = 'RFC 6121: Stream Feature: Subscription Pre-Approval' - dependences = set() + dependencies: ClassVar[Set[str]] = set() stanza = stanza def plugin_init(self): diff --git a/slixmpp/features/feature_preapproval/stanza.py b/slixmpp/features/feature_preapproval/stanza.py index b5d68f8e..630a0b7e 100644 --- a/slixmpp/features/feature_preapproval/stanza.py +++ b/slixmpp/features/feature_preapproval/stanza.py @@ -1,14 +1,14 @@ - # Slixmpp: The Slick XMPP Library # Copyright (C) 2012 Nathanael C. Fritz # This file is part of Slixmpp. # See the file LICENSE for copying permission. from slixmpp.xmlstream import ElementBase +from typing import ClassVar, Set class PreApproval(ElementBase): name = 'sub' namespace = 'urn:xmpp:features:pre-approval' - interfaces = set() + interfaces: ClassVar[Set[str]] = set() plugin_attrib = 'preapproval' |