Added missing comment

This commit is contained in:
Luke Else 2024-01-02 22:26:03 +00:00
parent e0b04d13f6
commit 79231a1f0d

View File

@ -15,6 +15,8 @@ class DatabaseController(ABC):
self._conn.close() self._conn.close()
print(e) print(e)
""" Takes a dictionary of fields and returns the object
with those fields populated """
def new_instance(self, of: type, with_fields: Mapping[str, Any]): def new_instance(self, of: type, with_fields: Mapping[str, Any]):
obj = of.__new__(of) obj = of.__new__(of)
for attr, value in with_fields.items(): for attr, value in with_fields.items():