Skip to content

Tidy a few non-idiomatic patterns#36

Merged
alexkroman merged 3 commits into
mainfrom
claude/python-idiomaticity-review-9xmZE
Jun 7, 2026
Merged

Tidy a few non-idiomatic patterns#36
alexkroman merged 3 commits into
mainfrom
claude/python-idiomaticity-review-9xmZE

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator
  • jsonshape.mapping_list: replace accumulate-loop with a comprehension
    using a walrus to bind the validated mapping.
  • init/scaffold: build the .env line list in one literal with *-unpacking
    instead of lines += [...].
  • code_gen/snippets._has: drop the redundant bool() inside any().
  • llm.usage_of: return usage.model_dump() directly instead of via an
    intermediate annotated local.

No behavior change; full check.sh gate passes (100% patch coverage).

claude and others added 3 commits June 7, 2026 23:28
- jsonshape.mapping_list: replace accumulate-loop with a comprehension
  using a walrus to bind the validated mapping.
- init/scaffold: build the .env line list in one literal with `*`-unpacking
  instead of `lines += [...]`.
- code_gen/snippets._has: drop the redundant `bool()` inside `any()`.
- llm.usage_of: return `usage.model_dump()` directly instead of via an
  intermediate annotated local.

No behavior change; full check.sh gate passes (100% patch coverage).
@alexkroman alexkroman merged commit 9bba7d5 into main Jun 7, 2026
10 checks passed
@alexkroman alexkroman deleted the claude/python-idiomaticity-review-9xmZE branch June 7, 2026 23:40
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