completed new cli

This commit is contained in:
Hellow
2023-06-12 19:46:46 +02:00
parent 308e34a91c
commit 4b4e05239f
5 changed files with 34 additions and 27 deletions

View File

@@ -36,6 +36,11 @@ class DatabaseObject:
self.build_version = -1
def __hash__(self):
if self.dynamic:
raise TypeError("Dynamic DatabaseObjects are unhashable.")
return self.id
def __eq__(self, other) -> bool:
if not isinstance(other, type(self)):
return False