From 54b53b7007504a1545cb4e020c52f4b3266c1e9e Mon Sep 17 00:00:00 2001 From: Jeremy Rapin Date: Mon, 25 Jan 2021 14:42:01 +0100 Subject: [PATCH] Fix type hint --- nevergrad/functions/photonics/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nevergrad/functions/photonics/test_core.py b/nevergrad/functions/photonics/test_core.py index d5ae55f5f..c480fc9c5 100644 --- a/nevergrad/functions/photonics/test_core.py +++ b/nevergrad/functions/photonics/test_core.py @@ -173,7 +173,7 @@ def test_photonics_values(name: str, value: float, expected: float) -> None: photosic_realistic=("cf_photosic_realistic", 0.0860257, np.array(EPS_AND_D).reshape((2, -1))), photosic_reference=("cf_photosic_reference", 0.431072, None), ) -def test_photonics_values_random(name: str, expected: float, data: tp.Optional[tp.List[float]]) -> None: +def test_photonics_values_random(name: str, expected: float, data: tp.Optional[np.ndarray]) -> None: if name == "morpho" and os.environ.get("CIRCLECI", False): raise SkipTest("Too slow in CircleCI") size = data.size if data is not None else (16 if name != "morpho" else 4)