summaryrefslogtreecommitdiff
path: root/poezio/core/tabs.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/core/tabs.py')
-rw-r--r--poezio/core/tabs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/tabs.py b/poezio/core/tabs.py
index b8c6d3a7..bcf6dd41 100644
--- a/poezio/core/tabs.py
+++ b/poezio/core/tabs.py
@@ -44,7 +44,7 @@ class Tabs:
'_events',
]
- def __init__(self, events: EventHandler):
+ def __init__(self, events: EventHandler) -> None:
"""
Initialize the Tab List. Even though the list is initially
empty, all methods are only valid once append() has been called
@@ -111,7 +111,7 @@ class Tabs:
"""Return the tab list"""
return self._tabs
- def by_name(self, name: str) -> tabs.Tab:
+ def by_name(self, name: str) -> Optional[tabs.Tab]:
"""Get a tab with a specific name"""
return self._tab_names.get(name)