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

Schemamigration #55

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

Schemamigration #55

wants to merge 1 commit into from

Conversation

greghaynes
Copy link
Collaborator

No description provided.

''', key, value)
return SystemConfig(key, value)

async def get(conn, key):
Copy link

Choose a reason for hiding this comment

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

Shouldn't this also be a static method?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link

@rmoe rmoe Sep 26, 2017

Choose a reason for hiding this comment

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

You're still providing the correct number of arguments to the method and not calling it on an instance of SystemConfig. The only difference is that by marking it a staticmethod only one copy exists. That is, SystemConfig().get is SystemConfig.get() will be True if get() is a staticmethod and False otherwise.

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