Skip to content

Commit

Permalink
Clarify docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Mar 3, 2022
1 parent 7430053 commit 900ab13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler_gym/service/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@


class HashableBaseModel(BaseModel):
"""A pydantic model that is hashable."""
"""A pydantic model that is hashable. Requires that all fields are hashable."""

def __hash__(self):
return hash((type(self),) + tuple(self.__dict__.values()))
Expand Down

0 comments on commit 900ab13

Please sign in to comment.