From 14180fe087aa62137368d6ccbec084e9f44c1c83 Mon Sep 17 00:00:00 2001 From: Jeremy Rapin Date: Mon, 27 Jan 2020 09:57:29 +0100 Subject: [PATCH] update signature --- nevergrad/functions/functionlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nevergrad/functions/functionlib.py b/nevergrad/functions/functionlib.py index 65ef5b7416..a2c23fda7e 100644 --- a/nevergrad/functions/functionlib.py +++ b/nevergrad/functions/functionlib.py @@ -259,8 +259,8 @@ def _multifunc(self, x: np.ndarray) -> np.ndarray: def _monofunc(self, x: np.ndarray) -> float: return float(np.sum(self._multifunc(x))) - def evaluation_function(self, x: np.ndarray) -> float: - return self._monofunc(x) + def evaluation_function(self, *args: tp.Any, **kwargs: tp.Any) -> float: + return self._monofunc(args[0]) @classmethod def itercases(cls) -> tp.Iterator["FarOptimumFunction"]: