MCPcopy Index your code
hub / github.com/nonebot/nonebot2 / __init__

Method __init__

nonebot/drivers/quart.py:83–92  ·  view source on GitHub ↗
(self, env: Env, config: NoneBotConfig)

Source from the content-addressed store, hash-verified

81 """Quart 驱动框架"""
82
83 def __init__(self, env: Env, config: NoneBotConfig):
84 super().__init__(env, config)
85
86 self.quart_config = type_validate_python(Config, model_dump(config))
87
88 self._server_app = Quart(
89 self.__class__.__qualname__, **self.quart_config.quart_extra
90 )
91 self._server_app.before_serving(self._lifespan.startup)
92 self._server_app.after_serving(self._lifespan.shutdown)
93
94 @property
95 @override

Callers 1

__init__Method · 0.45

Calls 2

type_validate_pythonFunction · 0.90
model_dumpFunction · 0.90

Tested by

no test coverage detected