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
Document the convention (from PR #548 review feedback) to use modern
Python 3.10+ type hint syntax: X | None, lowercase builtins, Literal.
Made-with: Cursor
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
@@ -76,6 +76,7 @@ See the [python-environment skill](.github/skills/python-environment/SKILL.md) f
76
76
-`ignore-missing-imports`: Enabled to allow for gradual adoption of type hints without requiring all third-party libraries to have stubs.
77
77
-`additional_dependencies`: Includes `numpy` and `pandas-stubs` to provide type information for these libraries.
78
78
-**Execution**: Run automatically via `pre-commit run --all-files` or on commit.
79
+
-**Style**: Use Python 3.10+ type hint syntax. Specifically: `X | None` not `Optional[X]`, lowercase `dict`, `list`, `tuple` not `Dict`, `List`, `Tuple` from `typing`, and `Literal` for constrained string parameters.
0 commit comments