mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-12 05:35:19 +00:00
use NestedDeserializableDataclass for config
This commit is contained in:
parent
96664684f8
commit
3eb358d618
13 changed files with 188 additions and 130 deletions
|
|
@ -2,5 +2,7 @@ from contextvars import ContextVar
|
|||
|
||||
import nio
|
||||
|
||||
config: ContextVar[dict] = ContextVar("config")
|
||||
from misc.config import Config
|
||||
|
||||
config: ContextVar[Config] = ContextVar("config")
|
||||
matrix_client: ContextVar[nio.AsyncClient] = ContextVar("matrix_client")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue