def test_make_nevergrad_parameter( description: Any, param_cls: Any, value_cls: Any ) -> None: param = core.make_nevergrad_parameter(description) assert isinstance(param, param_cls) if param_cls is not str: assert isinstance(param.value, value_cls)
def test_make_nevergrad_parameter(string: str, param_cls: Any, value_cls: Any) -> None: param = core.make_nevergrad_parameter(string) assert isinstance(param, param_cls) if param_cls is not str: assert isinstance(param.value, value_cls)