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_rosterver/rosterver.py | 4 ++-- slixmpp/features/feature_rosterver/stanza.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'slixmpp/features/feature_rosterver') diff --git a/slixmpp/features/feature_rosterver/rosterver.py b/slixmpp/features/feature_rosterver/rosterver.py index ae980388..1dea6878 100644 --- a/slixmpp/features/feature_rosterver/rosterver.py +++ b/slixmpp/features/feature_rosterver/rosterver.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_rosterver 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 FeatureRosterVer(BasePlugin): name = 'feature_rosterver' description = 'RFC 6121: Stream Feature: Roster Versioning' - dependences = set() + dependences: ClassVar[Set[str]] = set() stanza = stanza def plugin_init(self): diff --git a/slixmpp/features/feature_rosterver/stanza.py b/slixmpp/features/feature_rosterver/stanza.py index 3696d89a..428dbb26 100644 --- a/slixmpp/features/feature_rosterver/stanza.py +++ b/slixmpp/features/feature_rosterver/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 Set, ClassVar class RosterVer(ElementBase): name = 'ver' namespace = 'urn:xmpp:features:rosterver' - interfaces = set() + interfaces: ClassVar[Set[str]] = set() plugin_attrib = 'rosterver' -- cgit v1.2.3