from __future__ import annotations import os from typing import TypedDict CONFIG: dict[str, DbConfig] = { 'mysql': { 'driver': 'mysql', 'host': 'localhost', 'database': 'nizika_ai', 'user': os.environ['MYSQL_USER'], 'password': os.environ['MYSQL_PASS'], 'prefix': '' } } class DbConfig (TypedDict): driver: str host: str database: str user: str password: str prefix: str