summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-14 22:41:56 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commit14c09ce1cdbf6dc114a5a7acc085431c3430865e (patch)
tree3b01036ae396c2d8d8dd70281a83b75417a16aa6
parent4b198be9771594a28824cc082e737fe15ab681ec (diff)
downloadpoezio-14c09ce1cdbf6dc114a5a7acc085431c3430865e.tar.gz
poezio-14c09ce1cdbf6dc114a5a7acc085431c3430865e.tar.bz2
poezio-14c09ce1cdbf6dc114a5a7acc085431c3430865e.tar.xz
poezio-14c09ce1cdbf6dc114a5a7acc085431c3430865e.zip
make pylint happy
(for now)
-rw-r--r--poezio/config.py3
-rw-r--r--poezio/core/core.py4
-rw-r--r--poezio/tabs/basetabs.py3
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