diff options
author | mathieui <mathieui@mathieui.net> | 2018-09-11 20:16:48 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-09-11 20:16:48 +0200 |
commit | 0b8fef46f712cd1c534a53a963bd6d1dfe9f6794 (patch) | |
tree | 69217a2ecc9798ae8c0894cf92e38f2a1e1870c0 | |
parent | 12700fdaee46a979478d061d5039190afd3d0963 (diff) | |
download | poezio-0b8fef46f712cd1c534a53a963bd6d1dfe9f6794.tar.gz poezio-0b8fef46f712cd1c534a53a963bd6d1dfe9f6794.tar.bz2 poezio-0b8fef46f712cd1c534a53a963bd6d1dfe9f6794.tar.xz poezio-0b8fef46f712cd1c534a53a963bd6d1dfe9f6794.zip |
Fix compatibility with python 3.5.2
We don’t lose anything, mypy will add these Optionals by itself since it
can see the = None.
-rw-r--r-- | poezio/core/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index 9cc09650..eec0d49b 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) -> List[tabs.Tab]: + def get_tabs(self, cls: Type[tabs.Tab] = None) -> List[tabs.Tab]: "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) |