summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-26 11:50:29 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commitd0551c09ba8f5370ab3f40a9359687d5d7ed40bf (patch)
tree4fccbb5f489981a29c27596a45639e39319d8dbe /poezio
parentd27895e04e9100e9368a81756c0d679155a571d8 (diff)
downloadpoezio-d0551c09ba8f5370ab3f40a9359687d5d7ed40bf.tar.gz
poezio-d0551c09ba8f5370ab3f40a9359687d5d7ed40bf.tar.bz2
poezio-d0551c09ba8f5370ab3f40a9359687d5d7ed40bf.tar.xz
poezio-d0551c09ba8f5370ab3f40a9359687d5d7ed40bf.zip
fix: typing issues in plugins
Diffstat (limited to 'poezio')
-rw-r--r--poezio/plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/plugin.py b/poezio/plugin.py
index 0ba13412..5fde7a12 100644
--- a/poezio/plugin.py
+++ b/poezio/plugin.py
@@ -4,7 +4,7 @@ These are used in the plugin system added in poezio 0.7.5
(see plugin_manager.py)
"""
-from typing import Any, Dict, Set
+from typing import Any, Dict, Set, Optional
from asyncio import iscoroutinefunction
from functools import partial
from configparser import RawConfigParser
@@ -404,7 +404,7 @@ class BasePlugin(object, metaclass=SafetyMetaclass):
# Internal use only
_unloading = False
- default_config = None
+ default_config: Optional[Dict[Any, Any]] = None
dependencies: Set[str] = set()
# This dict will get populated when the plugin is initialized
refs: Dict[str, Any] = {}