Skip to content

Commit fa3f5c7

Browse files
cjw296claude
andcommitted
Drop lazy import guidance until toolchain catches up
lazy import (PEP 810) is in CPython 3.15 but ruff, ty, and mypy don't support the syntax yet. Filed astral-sh/ty#2968 and python/mypy#20978. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 5a1a9ac commit fa3f5c7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎agent-docs/coding-standards.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
- always use the latest possible python features, we are targeting the bleeding edge, update @.python_version if necessary
2-
- ONLY and aggressively use lazy imports (Python 3.15 native): `lazy import <package>` / `lazy from <package> import <name>` — e.g. `lazy import json`
1+
- always use the latest possible python features, we are targeting the bleeding edge, update @.python-version if necessary
32
- read pyproject.toml to see what libraries are installed, aggressively use them rather than writing code from scratch
43
- type annotate everything
54
- `ruff format` frequently

0 commit comments

Comments
 (0)