You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scopes from different IntEnums compare equal by value #572
This was generated by AI during a pre-4.0 audit of main at 9cd88e7.
Observation (reproduced)
IntEnum members of different enums compare and hash by value. A provider with a custom Tenancy.TENANT = 2 scope resolves and caches in a Scope.SESSION container, and validate() passes (container.py:125 and the container.scope == scope checks in the templates).
Question
Is mixing scope enums in one tree supported? If not, reject at construction/registration (provider scope type must match the tree's scope enum). If yes, compare by identity plus enum type. Needs a decision; see docs/providers/scopes.md custom scope section.
Activity
docs: cover ProviderScopeFrozenError and reuse test enums for scope i…
feat: report same-valued scopes of different enums in validate() (#572)
fix!: match scopes by enum member, not by integer value (#596)