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

resolver #118

Merged
merged 3 commits into from
Aug 29, 2018
Merged

resolver #118

merged 3 commits into from
Aug 29, 2018

Conversation

foodszhang
Copy link
Contributor

solved #62 #116 #117

if isinstance(other, RefNode):
return self._data == other._data and self.ref == other.ref
else:
super(RefNode,self).__eq__(other)
Copy link
Member

Choose a reason for hiding this comment

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

应该是 return super(RefNode,self).__eq__(other)

@@ -13,14 +13,38 @@ def schema_var_name(path):
return ''.join(map(str.capitalize, map(str, path)))


class RefNode(dict):
class RefNode(object):
Copy link
Member

Choose a reason for hiding this comment

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

这里还是应该 class RefNode(dict):

python 2 中 object 没有 __eq__ 属性

@gusibi gusibi merged commit fd02724 into guokr:master Aug 29, 2018
@gusibi gusibi mentioned this pull request Aug 29, 2018
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