diff options
-rw-r--r-- | poezio/config.py | 3 | ||||
-rw-r--r-- | poezio/core/core.py | 4 | ||||
-rw-r--r-- | poezio/tabs/basetabs.py | 3 |
3 files changed, 5 insertions, 5 deletions
diff --git a/poezio/config.py b/poezio/config.py index bb51eba1..54fab069 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -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) diff --git a/poezio/core/core.py b/poezio/core/core.py index 91c9b3cc..59ef094c 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -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 diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 0c59b89c..fee54adb 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -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 |