Skip to content
Snippets Groups Projects
Commit 9f6847d8 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

chore: Carbons: Add type annotations

parent 36260318
No related branches found
No related tags found
No related merge requests found
......@@ -14,19 +14,23 @@
# XEP-0280: Message Carbons
from __future__ import annotations
import nbxmpp
from nbxmpp.namespaces import Namespace
from nbxmpp.structs import DiscoInfo
from gajim.common import types
from gajim.common.modules.base import BaseModule
class Carbons(BaseModule):
def __init__(self, con):
def __init__(self, con: types.Client) -> None:
BaseModule.__init__(self, con)
self.supported = False
def pass_disco(self, info):
def pass_disco(self, info: DiscoInfo) -> None:
if Namespace.CARBONS not in info.features:
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment