Files
AstrBot/types/yaml.pyi
LIghtJUNction 7ff6df9853 chore: add type stubs and update pyproject.toml configuration
- Add type stubs for external packages (faiss, psutil, readability, etc.)
- Move typings to types/ directory
- Update pyproject.toml with mypy plugin configuration
- Add project URLs (Homepage, Repository)
- Update python version to 3.12 in pyright config
2026-03-31 20:14:35 +08:00

12 lines
234 B
Python

from typing import TextIO
class YAMLError(Exception): ...
def safe_load(stream: str | TextIO) -> object: ...
def dump(
data: object,
stream: TextIO | None = ...,
*args: object,
**kwargs: object,
) -> str | None: ...