Skip to content

Commit 3fd8380

Browse files
committed
ai(rules[AGENTS]) Clarify namespace imports for stdlib only
1 parent 5277588 commit 3fd8380

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
@@ -190,7 +190,7 @@ def test_sync(
190190

191191
### Imports
192192

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

0 commit comments

Comments
 (0)