Should Artifact eq/hash be based on the Artifact spec? #9
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
question
Further information is requested
pydantic models are not hashable by design. So far we have lived without the need to hash Artifacts. Equality is implemented by pydantic and is field based. This prevents the use of Artifact object in some use-cases: set, dict etc. Note that if we implement
hash
it should be consistent with theeq
, which can be problematic. Something to think about.Artifact spec: (id, version, parition)
The text was updated successfully, but these errors were encountered: