Browse Source

optional type in do_train

pull/1/head
Coin de Gamma 6 years ago
parent
commit
471c80fe0a
  1. 2
      analytics/analytics/analytic_unit_worker.py

2
analytics/analytics/analytic_unit_worker.py

@ -21,7 +21,7 @@ class AnalyticUnitWorker:
async def do_train(
self, payload: Union[list, dict], data: pd.DataFrame, cache: Optional[ModelCache]
) -> ModelCache:
) -> Optional[ModelCache]:
cfuture: concurrent.futures.Future = self._executor.submit(
self._detector.train, data, payload, cache
)

Loading…
Cancel
Save