With rPWBCb167da7 a dependency of "report_success" and "ignore_warnings" parameters was introduced which is really unclear:
@type ignore_warnings: bool or callable or iterable of str
@type report_success: Optional[bool]
...
if report_success is None:
report_success = isinstance(ignore_warnings, bool)
if report_success is True:
if not isinstance(ignore_warnings, bool):
raise ValueError('report_success may only be set to True when '
'ignore_warnings is a boolean')
issue_deprecation_warning('"ignore_warnings" as a boolean and '
'"report_success" is True or None',
'"report_success=False" or define '
'"ignore_warnings" as callable/iterable',
3, warning_class=FutureWarning,
since='20150823')if report_success is True it raises a ValueError if ignore_warnings is not a boolean but the same case if ignore_warnings is a boolean a DeprecationWarning/FutureWarning is printed that ignore_warnings must be a callable or iterable in that case. Strange