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

chore: PEP: Add type annotations

parent 59e9fffa
No related branches found
No related tags found
No related merge requests found
......@@ -14,17 +14,21 @@
# XEP-0163: Personal Eventing Protocol
from gajim.common.types import ConnectionT
from __future__ import annotations
from nbxmpp.structs import DiscoInfo
from gajim.common import types
from gajim.common.modules.base import BaseModule
class PEP(BaseModule):
def __init__(self, con: ConnectionT) -> None:
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:
for identity in info.identities:
if identity.category == 'pubsub':
if identity.type == 'pep':
......
......@@ -30,6 +30,7 @@
"gajim/common/idle.py",
"gajim/common/logging_helpers.py",
"gajim/common/modules/chat_markers.py",
"gajim/common/modules/pep.py",
"gajim/common/modules/register.py",
"gajim/common/passwords.py",
"gajim/common/regex.py",
......
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