Skip to content

Support user-defined custom scopes via any IntEnum#183

Merged
lesnik512 merged 1 commit intomainfrom
175-support-user-defined-custom-scopes
May 2, 2026
Merged

Support user-defined custom scopes via any IntEnum#183
lesnik512 merged 1 commit intomainfrom
175-support-user-defined-custom-scopes

Conversation

@lesnik512
Copy link
Copy Markdown
Member

Closes #175. Widen scope parameters (Container, providers, exceptions) from Scope to enum.IntEnum so users can define their own IntEnum and use it wherever Scope was accepted. Build the InvalidChildScopeError allowed_scopes list from the parent's actual enum class instead of hard-coding the standard Scope members.

Closes #175. Widen scope parameters (Container, providers, exceptions) from
Scope to enum.IntEnum so users can define their own IntEnum and use it
wherever Scope was accepted. Build the InvalidChildScopeError allowed_scopes
list from the parent's actual enum class instead of hard-coding the standard
Scope members.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lesnik512 lesnik512 self-assigned this May 2, 2026
@lesnik512 lesnik512 linked an issue May 2, 2026 that may be closed by this pull request
@lesnik512 lesnik512 merged commit 0e8f059 into main May 2, 2026
7 checks passed
@lesnik512 lesnik512 deleted the 175-support-user-defined-custom-scopes branch May 2, 2026 17:06
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.

Support user-defined custom scopes

1 participant