Pārlūkot izejas kodu

fix: mypy issue with start and end time types

trgiangdo 9 mēneši atpakaļ
vecāks
revīzija
fd3cb48623
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      taipy/core/job/_job_model.py

+ 3 - 3
taipy/core/job/_job_model.py

@@ -10,7 +10,7 @@
 # specific language governing permissions and limitations under the License.
 # specific language governing permissions and limitations under the License.
 
 
 from dataclasses import dataclass
 from dataclasses import dataclass
-from typing import Any, Dict, List
+from typing import Any, Dict, List, Optional
 
 
 from .._repository._base_taipy_model import _BaseModel
 from .._repository._base_taipy_model import _BaseModel
 from .job_id import JobId
 from .job_id import JobId
@@ -26,8 +26,8 @@ class _JobModel(_BaseModel):
     submit_id: str
     submit_id: str
     submit_entity_id: str
     submit_entity_id: str
     creation_date: str
     creation_date: str
-    execution_started_at: str
-    execution_ended_at: str
+    execution_started_at: Optional[str]
+    execution_ended_at: Optional[str]
     subscribers: List[Dict]
     subscribers: List[Dict]
     stacktrace: List[str]
     stacktrace: List[str]
     version: str
     version: str