We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3826ef9 commit e907f81Copy full SHA for e907f81
AGENTS.md
@@ -210,8 +210,9 @@ Key highlights:
210
211
### Imports
212
213
-- **Use namespace imports**: `import enum` instead of `from enum import Enum`
+- **Use namespace imports for standard library modules**: `import enum` instead of `from enum import Enum`
214
- **Exception**: `dataclasses` module may use `from dataclasses import dataclass, field` for cleaner decorator syntax
215
+ - This rule applies to Python standard library only; third-party packages may use `from X import Y`
216
- **For typing**, use `import typing as t` and access via namespace: `t.NamedTuple`, etc.
217
- **Use `from __future__ import annotations`** at the top of all Python files
218
0 commit comments