summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-25 22:03:01 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commit7a9df693641fc68a4e5ba98ebdea9324892cbbc1 (patch)
tree0726366d73ff8e71987ca3a9ad22de842f962248
parenta6e33a0c68f3eddc977df44615aceba7c3a1ab94 (diff)
downloadpoezio-7a9df693641fc68a4e5ba98ebdea9324892cbbc1.tar.gz
poezio-7a9df693641fc68a4e5ba98ebdea9324892cbbc1.tar.bz2
poezio-7a9df693641fc68a4e5ba98ebdea9324892cbbc1.tar.xz
poezio-7a9df693641fc68a4e5ba98ebdea9324892cbbc1.zip
fix: type errors for GapTab
-rw-r--r--poezio/core/tabs.py10
-rw-r--r--poezio/tabs/basetabs.py3
2 files changed, 8 insertions, 5 deletions
diff --git a/poezio/core/tabs.py b/poezio/core/tabs.py
index 536d7d62..6690149f 100644
--- a/poezio/core/tabs.py
+++ b/poezio/core/tabs.py
@@ -257,7 +257,7 @@ class Tabs:
return
if gap:
- self._tabs[tab.nb] = tabs.GapTab(None)
+ self._tabs[tab.nb] = tabs.GapTab()
else:
self._tabs.remove(tab)
@@ -346,16 +346,16 @@ class Tabs:
if new_pos < len(self._tabs):
old_tab = self._tabs[old_pos]
self._tabs[new_pos], self._tabs[
- old_pos] = old_tab, tabs.GapTab(None)
+ old_pos] = old_tab, tabs.GapTab()
else:
self._tabs.append(self._tabs[old_pos])
- self._tabs[old_pos] = tabs.GapTab(None)
+ self._tabs[old_pos] = tabs.GapTab()
else:
if new_pos > old_pos:
self._tabs.insert(new_pos, tab)
- self._tabs[old_pos] = tabs.GapTab(None)
+ self._tabs[old_pos] = tabs.GapTab()
elif new_pos < old_pos:
- self._tabs[old_pos] = tabs.GapTab(None)
+ self._tabs[old_pos] = tabs.GapTab()
self._tabs.insert(new_pos, tab)
else:
return False
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 33592c79..3d30fe80 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -468,6 +468,9 @@ class Tab:
class GapTab(Tab):
+ def __init__(self):
+ return
+
def __bool__(self):
return False