From 35eafadb443d4e7276e39d4f177e68a3c8577566 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 5 Jul 2021 22:40:21 +0200 Subject: features: fix typing for an annoying mypy bug --- slixmpp/features/feature_mechanisms/mechanisms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'slixmpp/features/feature_mechanisms/mechanisms.py') diff --git a/slixmpp/features/feature_mechanisms/mechanisms.py b/slixmpp/features/feature_mechanisms/mechanisms.py index dfdca010..db2d73d0 100644 --- a/slixmpp/features/feature_mechanisms/mechanisms.py +++ b/slixmpp/features/feature_mechanisms/mechanisms.py @@ -1,4 +1,3 @@ - # Slixmpp: The Slick XMPP Library # Copyright (C) 2011 Nathanael C. Fritz # This file is part of Slixmpp. @@ -15,6 +14,8 @@ from slixmpp.xmlstream.matcher import MatchXPath from slixmpp.xmlstream.handler import Callback from slixmpp.features.feature_mechanisms import stanza +from typing import ClassVar, Set + log = logging.getLogger(__name__) @@ -23,7 +24,7 @@ class FeatureMechanisms(BasePlugin): name = 'feature_mechanisms' description = 'RFC 6120: Stream Feature: SASL' - dependencies = set() + dependencies: ClassVar[Set[str]] = set() stanza = stanza default_config = { 'use_mech': None, -- cgit v1.2.3