Skip to content

refactor Privileges initialization to handle _Privilege instances dir…#25

Merged
tmunzer-AIDE merged 2 commits intomainfrom
0.61.5
Apr 22, 2026
Merged

refactor Privileges initialization to handle _Privilege instances dir…#25
tmunzer-AIDE merged 2 commits intomainfrom
0.61.5

Conversation

@tmunzer-AIDE
Copy link
Copy Markdown
Collaborator

…ectly

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors Privileges initialization to correctly handle inputs that may already be _Privilege instances (in addition to raw privilege dicts), avoiding double-wrapping and errors when non-dict items are provided.

Changes:

  • Updates Privileges.__init__ parameter typing to accept list[dict | _Privilege].
  • Adds runtime handling to append _Privilege instances directly and only construct _Privilege from dict inputs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tmunzer-AIDE tmunzer-AIDE merged commit 3f6b612 into main Apr 22, 2026
7 checks passed
@tmunzer-AIDE tmunzer-AIDE deleted the 0.61.5 branch April 22, 2026 20:43
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