Update plugin module

This commit is contained in:
Richard Chien 2019-01-05 21:03:36 +08:00
parent 6a8758147c
commit 07aa0b81f7

View File

@ -1,15 +1,15 @@
import importlib
import os
import re
from typing import Any, Set, NamedTuple
from typing import Any, Set, NamedTuple, Optional
from .log import logger
class Plugin(NamedTuple):
module: Any
name: str = None
usage: str = None
name: Optional[str] = None
usage: Optional[Any] = None
_plugins: Set[Plugin] = set()