From 38ba656bda5f6517e068a10c0ee19e659cdc9611 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 14 May 2019 23:07:42 +0100 Subject: [PATCH] Add type hints to utils.irc.MessageTag --- src/utils/irc/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index 8b4debfe..8b2b2d05 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -296,8 +296,8 @@ class Capability(object): def nak(self): pass -def MessageTag(object): - def __init__(self, name, draft_name=None): +class MessageTag(object): + def __init__(self, name: str, draft_name: str=None): self._names = set([name, draft_name]) def get_value(self, tags: typing.Dict[str, str]) -> typing.Optional[str]: key = list(set(tags.keys())&self._names)