Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: conda/pypi usage of _user_defined_attributes #2168

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

saikonen
Copy link
Collaborator

@saikonen saikonen commented Dec 9, 2024

base Decorator class now exposes _user_defined_attributes as a set. This differs in how it is used in conda/pypi decorators, and for the current pypi implementation, using @pypi_base leads to the set being used in dict splatting, resulting in an error.

Streamlining the usage in this PR to be in line with what the base class provides.

TODO:

  • test that this does not break internal extensions

@saikonen saikonen requested a review from romain-intel December 9, 2024 15:33
**self._user_defined_attributes,
**conda_base._user_defined_attributes,
}
self._user_defined_attributes = self._user_defined_attributes.union(
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't have an issue with this but we are overloading the meaning of _user_defined_attributes here since it is now a value across decorators. We don't currently use it but since you use it for a specfiic purpose, I would create a different name for it.

@romain-intel romain-intel merged commit b2bb54c into master Dec 10, 2024
29 checks passed
@romain-intel romain-intel deleted the fix/user-defined-attributes-fix-after-config branch December 10, 2024 07:42
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