Skip to content

Commit d581e7d

Browse files
committed
ai(rules[AGENTS]): Clarify namespace imports for stdlib only
1 parent 1010d6c commit d581e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ windows:
111111
- Use ruff for formatting and linting
112112
- Maintain strict mypy type checking
113113
- Keep imports organized with future annotations at top
114-
- **Prefer namespace imports**: Use `import enum` and `enum.Enum` instead of `from enum import Enum`
114+
- **Prefer namespace imports for stdlib**: Use `import enum` and `enum.Enum` instead of `from enum import Enum`; third-party packages may use `from X import Y`
115115
- **Type imports**: Use `import typing as t` and access via namespace (e.g., `t.Optional`)
116116
- **Development workflow**: Format → Test → Commit → Lint/Type Check → Test → Final Commit
117117

0 commit comments

Comments
 (0)