small fixes

This commit is contained in:
Klemek
2021-08-27 10:20:46 +02:00
parent 80e157c86f
commit 05039ea001
4 changed files with 8 additions and 3 deletions
+6
View File
@@ -62,3 +62,9 @@ class File:
with open(path, mode="w") as f:
for image in self.images:
f.write(image.export_cpp())
def __eq__(self, other: object) -> bool:
if isinstance(other, self.__class__):
return self.path == other.path
else:
return False