Commit 7a9df693 authored by mathieui's avatar mathieui

fix: type errors for GapTab

parent a6e33a0c
......@@ -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
......
......@@ -468,6 +468,9 @@ class Tab:
class GapTab(Tab):
def __init__(self):
return
def __bool__(self):
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment