mirror of
https://github.com/maubot/maubot
synced 2025-08-29 19:00:39 +00:00
Try another approach for plugin web apps
This commit is contained in:
parent
3c2d0a9fde
commit
b3e1f1d4bc
3 changed files with 79 additions and 20 deletions
|
@ -35,7 +35,7 @@ from .loader import PluginLoader, ZippedPluginLoader
|
|||
from .plugin_base import Plugin
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .server import MaubotServer
|
||||
from .server import MaubotServer, PluginWebApp
|
||||
|
||||
log = logging.getLogger("maubot.instance")
|
||||
|
||||
|
@ -59,7 +59,7 @@ class PluginInstance:
|
|||
base_cfg: RecursiveDict[CommentedMap]
|
||||
inst_db: sql.engine.Engine
|
||||
inst_db_tables: Dict[str, sql.Table]
|
||||
inst_webapp: web.Application
|
||||
inst_webapp: 'PluginWebApp'
|
||||
inst_webapp_url: str
|
||||
started: bool
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue