Add annotations
This commit is contained in:
parent
d6b7916f2b
commit
8e336311cc
1 changed files with 7 additions and 3 deletions
|
@ -12,6 +12,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
# 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
|
import logging
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
@ -24,13 +28,13 @@ log = logging.getLogger('gajim.c.m.base')
|
||||||
class BaseModule:
|
class BaseModule:
|
||||||
|
|
||||||
_nbxmpp_extends = ''
|
_nbxmpp_extends = ''
|
||||||
_nbxmpp_methods = []
|
_nbxmpp_methods = [] # type: List[str]
|
||||||
|
|
||||||
def __init__(self, con):
|
def __init__(self, con):
|
||||||
self._con = con
|
self._con = con
|
||||||
self._account = con.name
|
self._account = con.name
|
||||||
self._nbxmpp_callbacks = {}
|
self._nbxmpp_callbacks = {} # type: Dict[str, Any]
|
||||||
self.handlers = []
|
self.handlers = [] # type: List[str]
|
||||||
|
|
||||||
def __getattr__(self, key):
|
def __getattr__(self, key):
|
||||||
if key not in self._nbxmpp_methods:
|
if key not in self._nbxmpp_methods:
|
||||||
|
|
Loading…
Add table
Reference in a new issue