From 4d5c7125546d217f7084d2c245af55e331bea260 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Tue, 17 Oct 2023 14:44:06 +0200 Subject: [PATCH] models:history - use object type for data field --- acacore/models/history.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/acacore/models/history.py b/acacore/models/history.py index a8e7e80..b9851f6 100644 --- a/acacore/models/history.py +++ b/acacore/models/history.py @@ -1,6 +1,5 @@ from datetime import datetime from typing import Optional -from typing import Union from pydantic import UUID4 @@ -11,5 +10,5 @@ class HistoryEntry(ACABase): uuid: UUID4 time: datetime operation: str - data: Optional[Union[dict, list, str, int, float, bool, datetime]] = None + data: Optional[object] = None reason: Optional[str] = None