In optimize, scipy/optimize/_optimize.py:_wrap_callback[line 93], sig = inspect.signature(callback) is called to check the names in the argument list to decide on how ...