Skip to content

Fix setter decorator for project property#8362

Open
owah wants to merge 1 commit into
Vector35:devfrom
owah:patch-1
Open

Fix setter decorator for project property#8362
owah wants to merge 1 commit into
Vector35:devfrom
owah:patch-1

Conversation

@owah

@owah owah commented Jul 25, 2026

Copy link
Copy Markdown

PluginCommandContext.project's setter is decorated with @function.setter instead of @project.setter. Because @x.setter returns a new property built from x, this attaches the new setter to the function property while keeping its original getter, and binds the whole thing to the name project. The result: context.project reads back self._function instead of self._project.

`PluginCommandContext.project`'s setter is decorated with `@function.setter`
instead of `@project.setter`. Because `@x.setter` returns a new property
built from `x`, this attaches the new setter to the *function* property
while keeping its original getter, and binds the whole thing to the name
`project`. The result: `context.project` reads back `self._function`
instead of `self._project`.
Copilot AI review requested due to automatic review settings July 25, 2026 16:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects the PluginCommandContext.project property setter decorator so that assignments to context.project update and subsequently read back self._project (rather than accidentally binding to the function property and reading self._function).

Changes:

  • Fix PluginCommandContext.project setter to use @project.setter instead of @function.setter.

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

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