Move files
This commit is contained in:
parent
b97b20ba88
commit
c046d64a98
16 changed files with 35 additions and 36 deletions
6
great_ai/views/hashable_base_model.py
Normal file
6
great_ai/views/hashable_base_model.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class HashableBaseModel(BaseModel):
|
||||
def __hash__(self) -> int:
|
||||
return hash((type(self),) + tuple(self.__dict__.values()))
|
||||
Loading…
Add table
Add a link
Reference in a new issue