Skip to content

Fix MarathonResource hash as well#205

Merged
solarkennedy merged 2 commits intothefactory:masterfrom
jolynch:jlynch_fix_marathon_resource
Jun 27, 2017
Merged

Fix MarathonResource hash as well#205
solarkennedy merged 2 commits intothefactory:masterfrom
jolynch:jlynch_fix_marathon_resource

Conversation

@jolynch
Copy link
Copy Markdown
Contributor

@jolynch jolynch commented Jun 27, 2017

Turns out that Python3 does not allow child classes to inherit hash methods, if you explicitly define eq you also have to explicitly define eq.

MarathonTask -> MarathonResource -> MarathonObject, so for MarathonTasks to be hashible we actually need to define hash on MarathonResource.

Oops.

@jolynch
Copy link
Copy Markdown
Contributor Author

jolynch commented Jun 27, 2017

This should fix #203 for real

@solarkennedy solarkennedy merged commit c1e0c34 into thefactory:master Jun 27, 2017
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