Explorar o código

fixed bug in type declaration

tanja %!s(int64=3) %!d(string=hai) anos
pai
achega
0b7417be5b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      cdplib/hyperopt/HyperoptPipelineSelector.py

+ 2 - 2
cdplib/hyperopt/HyperoptPipelineSelector.py

@@ -184,7 +184,7 @@ class HyperoptPipelineSelector(PipelineSelector):
             self._logger.log_and_raise_error(err)
 
     def _get_space_element_from_trial(self, trial: dict)\
-            -> Union[Dict[SpaceElementType], None]:
+            -> Union[Dict[str, SpaceElementType], None]:
         """
         Hyperopt trials object does not contain the space
              elements that result in the corresponding trials.
@@ -220,7 +220,7 @@ class HyperoptPipelineSelector(PipelineSelector):
             self._logger.log_and_raise_error(err)
 
     def _get_space_element_from_index(self, i: int)\
-            -> Union[Dict[SpaceElementType], None]:
+            -> Union[Dict[str, SpaceElementType], None]:
         """
         Gets the space element of shape
         {"name": NAME, "params": PARAMS, "pipeline": PIPELINE}