summaryrefslogtreecommitdiff
path: root/poezio/core/core.py
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 /poezio/core/core.py
parent4b198be9771594a28824cc082e737fe15ab681ec (diff)
downloadpoezio-14c09ce1cdbf6dc114a5a7acc085431c3430865e.tar.gz
poezio-14c09ce1cdbf6dc114a5a7acc085431c3430865e.tar.bz2
poezio-14c09ce1cdbf6dc114a5a7acc085431c3430865e.tar.xz
poezio-14c09ce1cdbf6dc114a5a7acc085431c3430865e.zip
make pylint happy
(for now)
Diffstat (limited to 'poezio/core/core.py')
-rw-r--r--poezio/core/core.py4
1 files changed, 2 insertions, 2 deletions
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