chore: add TypedDict related prompt to AGENTS.md (#32995)

Co-authored-by: caoergou <caogou123@163.com>
This commit is contained in:
Eric Caoandcaoergou authored and GitHub committed 2026-03-05 10:08:18 +09:00
1 parent 2b5ce196ad
commit 164ccb7c48
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ The codebase is split into:
## Language Style
- **Python**: Keep type hints on functions and attributes, and implement relevant special methods (e.g., `__repr__`, `__str__`).
- **Python**: Keep type hints on functions and attributes, and implement relevant special methods (e.g., `__repr__`, `__str__`). Prefer `TypedDict` over `dict` or `Mapping` for type safety and better code documentation.
- **TypeScript**: Use the strict config, rely on ESLint (`pnpm lint:fix` preferred) plus `pnpm type-check:tsgo`, and avoid `any` types.
## General Practices