Skip to content

Commit b6916c1

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ For detailed coding standards, refer to `.cursor/rules/dev-loop.mdc`. Key highli
196196

197197
### Imports
198198

199-
- **Use namespace imports**: `import enum` instead of `from enum import Enum`
199+
- **Use namespace imports for stdlib**: `import enum` instead of `from enum import Enum`; third-party packages may use `from X import Y`
200200
- **For typing**, use `import typing as t` and access via namespace: `t.NamedTuple`, etc.
201201
- **Use `from __future__ import annotations`** at the top of all Python files
202202

0 commit comments

Comments
 (0)