Unverified Commit 0b8fef46 authored by mathieui's avatar mathieui

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.
parent 12700fda
Pipeline #1639 failed with stages
in 1 minute and 46 seconds
......@@ -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)
......
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