Should more classes have __eq__ and/or __repr__ #222
Labels
best practice
Issues that should be addressed for compliance with best practices, but that aren't technically bugs
Milestone
Not all classes have
__eq__
and__repr__
. This was originally mentioned in #218 when I was writing tests for theLink
class. It's okay to not have one or both of these in a class, but it's worth a quick discussion.__eq__
is mostly useful for testing. Can/should the__repr__
be something that can be pasted to create an instance of that thing? That seems tough with the structure of pystac.and
The text was updated successfully, but these errors were encountered: