diff --git a/bkbit/models/genome_annotation.py b/bkbit/models/genome_annotation.py index a10acbc..d83ba6b 100644 --- a/bkbit/models/genome_annotation.py +++ b/bkbit/models/genome_annotation.py @@ -412,6 +412,10 @@ class GeneAnnotation(Gene): """ An annotation describing the location, boundaries, and functions of individual genes within a genome annotation. """ + + def __hash__(self): + return hash(tuple([self.id, self.name, self.molecular_type, self.description])) + molecular_type: Optional[Union[BioType, str]] = Field(None) source_id: Optional[str] = Field(None, description="""The authority specific identifier.""") referenced_in: Union[GenomeAnnotation, str] = Field(..., description="""The genome annotation that this gene annotation was referenced from.""")