You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,7 @@ uv run tox -e typecheck
65
65
- The monorepo uses `uv` workspaces.
66
66
-`tox.ini` defines the test matrix - check it for available test environments.
67
67
- Do not add `type: ignore` comments. If a type error arises, solve it properly or write a follow-up plan to address it in another PR.
68
+
- Annotate function signatures (parameters and return types) and class attributes. Prefer `from __future__ import annotations` over runtime-quoted strings.
68
69
- When a file uses `from __future__ import annotations`, do not quote type annotations just to
69
70
avoid forward references. Keep quotes only for expressions still evaluated at runtime, such as
70
71
`typing.cast(...)`, unless the referenced type is imported at runtime.
0 commit comments