chore: drop typing from config

This commit is contained in:
banteg
2025-12-29 02:35:23 +04:00
parent a3ac573985
commit 171f8b5c21
@@ -1,12 +1,9 @@
from __future__ import annotations
import tomllib import tomllib
from pathlib import Path from pathlib import Path
from typing import Any
from .constants import TELEGRAM_CONFIG_PATH from .constants import TELEGRAM_CONFIG_PATH
def load_telegram_config(path: str | None = None) -> dict[str, Any]: def load_telegram_config(path=None):
cfg_path = Path(path) if path else TELEGRAM_CONFIG_PATH cfg_path = Path(path) if path else TELEGRAM_CONFIG_PATH
return tomllib.loads(cfg_path.read_text(encoding="utf-8")) return tomllib.loads(cfg_path.read_text(encoding="utf-8"))