Skip to content

Simplify: drop vestigial local re-imports and collapse is_agentic#149

Merged
alexkroman merged 1 commit into
mainfrom
claude/codebase-review-simplify-xhl9xc
Jun 13, 2026
Merged

Simplify: drop vestigial local re-imports and collapse is_agentic#149
alexkroman merged 1 commit into
mainfrom
claude/codebase-review-simplify-xhl9xc

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

errors.py imports nothing from the package, so the local
from aai_cli.errors import ... statements inside config.py and
context.py functions were pure redundancy shadowing the existing
module-level imports (config.py even had three, two within one
function, which made CLIError a function-local). Fall back to the
module-level imports and collapse is_agentic()'s early-return into a
single boolean expression.

No behavior change.

errors.py imports nothing from the package, so the local
`from aai_cli.errors import ...` statements inside config.py and
context.py functions were pure redundancy shadowing the existing
module-level imports (config.py even had three, two within one
function, which made CLIError a function-local). Fall back to the
module-level imports and collapse is_agentic()'s early-return into a
single boolean expression.

No behavior change.
@alexkroman alexkroman added this pull request to the merge queue Jun 13, 2026
Merged via the queue into main with commit 0932a0e Jun 13, 2026
16 checks passed
@alexkroman alexkroman deleted the claude/codebase-review-simplify-xhl9xc branch June 13, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants