Skip to content

Rename identity to id #45

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

Merged
merged 1 commit into from
Mar 18, 2016
Merged

Rename identity to id #45

merged 1 commit into from
Mar 18, 2016

Conversation

zhenlineo
Copy link
Contributor

No description provided.

@@ -140,21 +139,21 @@ class UnboundRelationship(BaseRelationship):
"""

@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.

2 participants