Fix small mistakes
This commit is contained in:
parent
e6528be63d
commit
dcddfce5bc
@ -26,7 +26,7 @@ class HyperOptResolver(IResolver):
|
||||
def __init__(self, config: Dict) -> None:
|
||||
"""
|
||||
Load the custom class from config parameter
|
||||
:param config: configuration dictionary or None
|
||||
:param config: configuration dictionary
|
||||
"""
|
||||
|
||||
# Verify the hyperopt is in the configuration, otherwise fallback to the default hyperopt
|
||||
|
@ -67,7 +67,7 @@ class IResolver(object):
|
||||
|
||||
@staticmethod
|
||||
def _load_object(paths: List[Path], object_type, object_name: str,
|
||||
kwargs: dict = {}) -> Union[Any, None]:
|
||||
kwargs: dict = {}) -> Optional[Any]:
|
||||
"""
|
||||
Try to load object from path list.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user