mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
Update plugin module
This commit is contained in:
parent
6a8758147c
commit
07aa0b81f7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user