(py_reduce)
| 1180 | __class_getitem__ = classmethod(GenericAlias) |
| 1181 | |
| 1182 | def _warn_python_reduce_kwargs(py_reduce): |
| 1183 | @wraps(py_reduce) |
| 1184 | def wrapper(*args, **kwargs): |
| 1185 | if 'function' in kwargs or 'sequence' in kwargs: |
| 1186 | import os |
| 1187 | import warnings |
| 1188 | warnings.warn( |
| 1189 | 'Calling functools.reduce with keyword arguments ' |
| 1190 | '"function" or "sequence" ' |
| 1191 | 'is deprecated in Python 3.14 and will be ' |
| 1192 | 'forbidden in Python 3.16.', |
| 1193 | DeprecationWarning, |
| 1194 | skip_file_prefixes=(os.path.dirname(__file__),)) |
| 1195 | return py_reduce(*args, **kwargs) |
| 1196 | return wrapper |
| 1197 | |
| 1198 | reduce = _warn_python_reduce_kwargs(reduce) |
| 1199 | del _warn_python_reduce_kwargs |
no outgoing calls
no test coverage detected
searching dependent graphs…