feat: positional subject arguments for Factory, ContextProvider, Alias (API-5)#287
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/).to-2.x.md's keyword-only note is version-stamped ("Since 2.27").architecture/providers.mdpromoted in the same PR.TypeError. Existing keyword call sites left untouched as living back-compat proof.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