소스 검색

Attempt to fix linter

jrobinAV 1 년 전
부모
커밋
5dd3f030c2
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      taipy/core/_orchestrator/_dispatcher/_standalone_job_dispatcher.py
  2. 1 1
      taipy/core/_orchestrator/_orchestrator_factory.py

+ 1 - 1
taipy/core/_orchestrator/_dispatcher/_standalone_job_dispatcher.py

@@ -51,7 +51,7 @@ class _StandaloneJobDispatcher(_JobDispatcher):
         self._nb_available_workers -= 1
         config_as_string = _TomlSerializer()._serialize(Config._applied_config)  # type: ignore[attr-defined]
         # TODO REMOVE THIS
-        if self._executor._shutdown_thread:
+        if self._executor._shutdown_thread:  # type: ignore
             print(f"{job.id=}, {job.task.id=} is not dispatched because executor is closed.")
         future = self._executor.submit(_TaskFunctionWrapper(job.id, job.task), config_as_string=config_as_string)
 

+ 1 - 1
taipy/core/_orchestrator/_orchestrator_factory.py

@@ -27,7 +27,7 @@ class _OrchestratorFactory:
     _TAIPY_ENTERPRISE_CORE_DISPATCHER_MODULE = _TAIPY_ENTERPRISE_MODULE + ".core._orchestrator._dispatcher"
     __TAIPY_ENTERPRISE_BUILD_DISPATCHER_METHOD = "_build_dispatcher"
 
-    _orchestrator: Optional[_Orchestrator] = None
+    _orchestrator: _AbstractOrchestrator = None
     _dispatcher: Optional[_JobDispatcher] = None
 
     @classmethod