summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-25 22:14:13 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commitd08ed8d13813db4d54079d207eb99a4dacd664fb (patch)
treeaf407f8a078526d6c0f9eda17f9cffb45e861099
parent2c12a598aa1efaae89932b3af18c45a0c50b8445 (diff)
downloadpoezio-d08ed8d13813db4d54079d207eb99a4dacd664fb.tar.gz
poezio-d08ed8d13813db4d54079d207eb99a4dacd664fb.tar.bz2
poezio-d08ed8d13813db4d54079d207eb99a4dacd664fb.tar.xz
poezio-d08ed8d13813db4d54079d207eb99a4dacd664fb.zip
fix: ignore typeerrors in tabs when we check beforehand
-rw-r--r--poezio/core/tabs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/core/tabs.py b/poezio/core/tabs.py
index 6690149f..c1a5ef40 100644
--- a/poezio/core/tabs.py
+++ b/poezio/core/tabs.py
@@ -187,7 +187,7 @@ class Tabs:
for cls in _get_tab_types(tab):
self._tab_types[cls].append(tab)
if hasattr(tab, 'jid'):
- self._tab_jids[tab.jid] = tab
+ self._tab_jids[tab.jid] = tab # type: ignore
self._tab_names[tab.name] = tab
self._update_numbers()
@@ -248,7 +248,7 @@ class Tabs:
for cls in _get_tab_types(tab):
self._tab_types[cls].append(tab)
if hasattr(tab, 'jid'):
- self._tab_jids[tab.jid] = tab
+ self._tab_jids[tab.jid] = tab # type: ignore
self._tab_names[tab.name] = tab
def delete(self, tab: tabs.Tab, gap=False):
@@ -266,7 +266,7 @@ class Tabs:
for cls in _get_tab_types(tab):
self._tab_types[cls].remove(tab)
if hasattr(tab, 'jid'):
- del self._tab_jids[tab.jid]
+ del self._tab_jids[tab.jid] # type: ignore
del self._tab_names[tab.name]
if gap: