From d0551c09ba8f5370ab3f40a9359687d5d7ed40bf Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 26 Mar 2021 11:50:29 +0100 Subject: fix: typing issues in plugins --- poezio/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio') 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] = {} -- cgit v1.2.3