Commit 14c09ce1 authored by mathieui's avatar mathieui

make pylint happy

(for now)
parent 4b198be9
......@@ -240,6 +240,9 @@ class Config:
def options(self, *args, **kwargs):
return self.configparser.options(*args, **kwargs)
def has_option(self, *args, **kwargs):
return self.configparser.has_option(*args, **kwargs)
def has_section(self, *args, **kwargs):
return self.configparser.has_section(*args, **kwargs)
......
......@@ -1768,14 +1768,14 @@ class Core:
self.refresh_window()
class KeyDict(Dict[str, Callable[[str], Any]]):
class KeyDict(dict):
"""
A dict, with a wrapper for get() that will return a custom value
if the key starts with _exc_
"""
try_execute: Optional[Callable[[str], Any]]
def get(self, key: str, default: Optional[Callable] = None) -> Callable:
def get(self, key: str, default=None) -> Callable:
if isinstance(key, str) and key.startswith('_exc_') and len(key) > 5:
if self.try_execute is not None:
try_execute = self.try_execute
......
......@@ -468,9 +468,6 @@ class Tab:
class GapTab(Tab):
def __init__(self, core: Optional[Core], *args, **kwargs):
super().__init__(core, **args, **kwargs)
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