Browse Source

fixed typing

Toan Quach 1 year ago
parent
commit
ba936b40d7
2 changed files with 43 additions and 4 deletions
  1. 39 0
      MANIFEST.in
  2. 4 4
      taipy/core/submission/submission.py

+ 39 - 0
MANIFEST.in

@@ -12,3 +12,42 @@ include taipy/config/*.pyi
 include taipy/config/*.json
 recursive-include taipy/templates *
 include taipy/rest/*.json
+include taipy/core/*.json
+include taipy/core/config/*.json
+include taipy/*.json
+include taipy/gui_core/*.json
+include taipy/gui_core/lib/*.js
+recursive-include taipy/gui/webapp *
+include taipy/gui/version.json
+include taipy/gui/viselements.json
+include taipy/gui/*.pyi
+include taipy/config/*.pyi
+include taipy/config/*.json
+recursive-include taipy/templates *
+include taipy/rest/*.json
+include taipy/core/*.json
+include taipy/core/config/*.json
+include taipy/*.json
+include taipy/gui_core/*.json
+include taipy/gui_core/lib/*.js
+recursive-include taipy/gui/webapp *
+include taipy/gui/version.json
+include taipy/gui/viselements.json
+include taipy/gui/*.pyi
+include taipy/config/*.pyi
+include taipy/config/*.json
+recursive-include taipy/templates *
+include taipy/rest/*.json
+include taipy/core/*.json
+include taipy/core/config/*.json
+include taipy/*.json
+include taipy/gui_core/*.json
+include taipy/gui_core/lib/*.js
+recursive-include taipy/gui/webapp *
+include taipy/gui/version.json
+include taipy/gui/viselements.json
+include taipy/gui/*.pyi
+include taipy/config/*.pyi
+include taipy/config/*.json
+recursive-include taipy/templates *
+include taipy/rest/*.json

+ 4 - 4
taipy/core/submission/submission.py

@@ -12,7 +12,7 @@
 import threading
 import uuid
 from datetime import datetime
-from typing import Any, Dict, List, Optional, Union
+from typing import Any, Dict, List, Optional, Set, Union
 
 from .._entity._entity import _Entity
 from .._entity._labeled import _Labeled
@@ -133,17 +133,17 @@ class Submission(_Entity, _Labeled):
         return jobs
 
     @property
-    def running_jobs(self) -> _SelfSetterSet:
+    def running_jobs(self) -> Set[Job]:
         self._running_jobs = _Reloader()._reload(self._MANAGER_NAME, self)._running_jobs
         return self._running_jobs
 
     @property
-    def blocked_jobs(self) -> _SelfSetterSet:
+    def blocked_jobs(self) -> Set[Job]:
         self._blocked_jobs = _Reloader()._reload(self._MANAGER_NAME, self)._blocked_jobs
         return self._blocked_jobs
 
     @property
-    def pending_jobs(self) -> _SelfSetterSet:
+    def pending_jobs(self) -> Set[Job]:
         self._pending_jobs = _Reloader()._reload(self._MANAGER_NAME, self)._pending_jobs
         return self._pending_jobs