Plan
plan
Move plan dataclass and related exceptions.
CallerRewrite
dataclass
ImportCycleError
Bases: Exception
Raised when a move would introduce a new import cycle.
Source code in packages/axm-anvil/src/axm_anvil/core/plan.py
MovePathError
Bases: Exception
Raised when source and target paths share no usable common base.
Computing the relative paths handed to batch_edit requires a base
directory that contains both the source and the target. When the two
live in disjoint trees (e.g. different drives) no such base exists, so the
fallback raises this typed error instead of leaking a bare ValueError.
Source code in packages/axm-anvil/src/axm_anvil/core/plan.py
MovePlan
dataclass
Result of a :func:move_symbols call.
Carries the rendered source and target texts, the names that were
actually moved, and the direct dependencies (imports, constants)
copied into the target. warnings aggregates non-fatal issues
such as ruff post-processing errors.
Source code in packages/axm-anvil/src/axm_anvil/core/plan.py
MoveValidationError
Bases: Exception
Raised when a rendered module fails to parse post-transform.
Source code in packages/axm-anvil/src/axm_anvil/core/plan.py
OverloadPartialMoveError
SharedHelperDetection
dataclass
Classification record for a helper flagged as shared.
Source code in packages/axm-anvil/src/axm_anvil/core/plan.py
SharedHelpersError
Bases: Exception
Raised in error mode when shared helpers would be duplicated.