summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-09-12 19:30:04 +0200
committermathieui <mathieui@mathieui.net>2018-09-12 19:30:04 +0200
commit239d47aa1a417e571527d61e3b51638908f708d4 (patch)
treeaa6178a143fda14164645845cd4d4f3f701a7448
parentc0ffc4b15c761527981f80a1626534305feb6133 (diff)
downloadpoezio-239d47aa1a417e571527d61e3b51638908f708d4.tar.gz
poezio-239d47aa1a417e571527d61e3b51638908f708d4.tar.bz2
poezio-239d47aa1a417e571527d61e3b51638908f708d4.tar.xz
poezio-239d47aa1a417e571527d61e3b51638908f708d4.zip
Fix compatibility with python 3.5.2
-rw-r--r--poezio/core/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 580e4c76..6cfdefdb 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -908,7 +908,7 @@ class Core:
### Tab getters ###
- def get_tabs(self, cls: Optional[Type[tabs.Tab]] = None):
+ def get_tabs(self, cls: Type[tabs.Tab] = None):
"Get all the tabs of a type"
if cls is None:
return self.tabs.get_tabs()
@@ -1047,7 +1047,7 @@ class Core:
def focus_tab_named(self,
tab_name: str,
- type_: Optional[Type[tabs.Tab]] = None) -> bool:
+ type_: Type[tabs.Tab] = None) -> bool:
"""Returns True if it found a tab to focus on"""
if type_ is None:
tab = self.tabs.by_name(tab_name)