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

Override __eq__ for resource #51

Open
ruscoder opened this issue Jan 31, 2020 · 3 comments
Open

Override __eq__ for resource #51

ruscoder opened this issue Jan 31, 2020 · 3 comments

Comments

@ruscoder
Copy link
Member

Repeat Django's behaviour, just check resource_type and id

@ruscoder
Copy link
Member Author

ruscoder commented Feb 9, 2020

Workaround - use explicitly a.reference == b.reference

@ruscoder ruscoder closed this as completed Feb 9, 2020
@ruscoder ruscoder reopened this Feb 25, 2020
@ruscoder
Copy link
Member Author

It is needed for sets

@ir4y
Copy link
Member

ir4y commented Apr 17, 2023

Let's implement __eq__ as resourceType and id check only.

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

No branches or pull requests

2 participants