STY: error and warning formatting on 'function_base.py'