Skip to content

Conversation

@zhenlineo
Copy link
Contributor

No description provided.


@classmethod
def hydrate(cls, identity, type, properties=None):
def hydrate(cls, id, type, properties=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

The name id refers to a built-in function in Python so using that name as a variable shadows that built-in. Standard practice would be to use id_ instead. This doesn't affect member attributes of objects, i.e. alice.id.

technige pushed a commit that referenced this pull request Mar 18, 2016
@technige technige merged commit 126060f into 1.0 Mar 18, 2016
@technige technige deleted the 1.0-entity-id branch March 18, 2016 14:59
@AnikinNN AnikinNN mentioned this pull request Oct 15, 2024
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.

3 participants