[Git][gajim/gajim][master] Add annotations

Philipp Hörist gitlab at dev.gajim.org
Sat Jan 26 21:57:31 CET 2019


Philipp Hörist pushed to branch master at gajim / gajim


Commits:
8e336311 by Philipp Hörist at 2019-01-26T20:57:22Z
Add annotations

- - - - -


1 changed file:

- gajim/common/modules/base.py


Changes:

=====================================
gajim/common/modules/base.py
=====================================
@@ -12,6 +12,10 @@
 # You should have received a copy of the GNU General Public License
 # along with Gajim.  If not, see <http://www.gnu.org/licenses/>.
 
+from typing import Any  # pylint: disable=unused-import
+from typing import Dict  # pylint: disable=unused-import
+from typing import List  # pylint: disable=unused-import
+
 import logging
 from functools import partial
 from unittest.mock import Mock
@@ -24,13 +28,13 @@ log = logging.getLogger('gajim.c.m.base')
 class BaseModule:
 
     _nbxmpp_extends = ''
-    _nbxmpp_methods = []
+    _nbxmpp_methods = []  # type: List[str]
 
     def __init__(self, con):
         self._con = con
         self._account = con.name
-        self._nbxmpp_callbacks = {}
-        self.handlers = []
+        self._nbxmpp_callbacks = {}  # type: Dict[str, Any]
+        self.handlers = []  # type: List[str]
 
     def __getattr__(self, key):
         if key not in self._nbxmpp_methods:



View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8e336311cc259c738e49919cd517f29aeecdf1ed

-- 
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8e336311cc259c738e49919cd517f29aeecdf1ed
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20190126/79d79128/attachment-0001.html>


More information about the Commits mailing list