Skip to content

feat: positional subject arguments for Factory, ContextProvider, Alias (API-5)#287

Merged
lesnik512 merged 5 commits into
mainfrom
positional-subject-args
Jul 8, 2026
Merged

feat: positional subject arguments for Factory, ContextProvider, Alias (API-5)#287
lesnik512 merged 5 commits into
mainfrom
positional-subject-args

Conversation

@lesnik512

Copy link
Copy Markdown
Member

The accepted API-5 item from the 2026-07-05 3.0 UX research, extended by maintainer ruling to all three registerable providers: each provider's subject parameter — Factory(creator), ContextProvider(context_type), Alias(source_type) — moves ahead of the * and becomes positional-or-keyword. Factory(UserService) is the new shortest registration; every existing keyword call site keeps working unchanged (no deprecation, no warnings, no /).

  • Docs/README teach the positional spelling throughout; each provider page states the new signature once with a one-line keyword-form mention; to-2.x.md's keyword-only note is version-stamped ("Since 2.27").
  • architecture/providers.md promoted in the same PR.
  • New tests: positional construction resolves through a container for all three; double-pass raises Python's native TypeError. Existing keyword call sites left untouched as living back-compat proof.
  • Gates: just test-ci (100% line coverage, 311 passed), just lint-ci, just docs-build --strict, just check-planning — all green.

Design bundle (rationale home): planning/changes/2026-07-08.01-positional-subject-args.md

🤖 Generated with Claude Code

lesnik512 and others added 5 commits July 8, 2026 09:11
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…gument (API-5)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit 44b4c66 into main Jul 8, 2026
7 checks passed
@lesnik512 lesnik512 deleted the positional-subject-args branch July 8, 2026 07:03
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.

1 participant