Skip to content

Commit

Permalink
update signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jrapin committed Jan 27, 2020
1 parent f0e3eb9 commit 14180fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nevergrad/functions/functionlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 14180fe

Please sign in to comment.