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

Changed 'add_base_attribute' method name into 'set_base_attribute' #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kritchie
Copy link
Contributor

@kritchie kritchie commented Oct 6, 2018

This PR addresses GH-117 by refactoring the method name add_base_attribute to set_base_attribute

Prior to this change, the add_base_attribute had an idempotent definition :

self.base_attributes = kwargs

While the method declaration let's the user think that this method is indeed not idempotent by having the keyword add in the method declaration. Setting it to set_base_attribute will remove potential errors from users.

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.

1 participant