gh-149083: use sentinel to fix _functools.reduce() signature (#149591) · python/cpython@c6fd7de · GitHub
Skip to content

Commit c6fd7de

Browse files
authored
gh-149083: use sentinel to fix _functools.reduce() signature (#149591)
1 parent b45319e commit c6fd7de

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

Lib/inspect.py

Lines changed: 2 additions & 1 deletion

Lib/test/test_inspect/test_inspect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6255,8 +6255,7 @@ def test_faulthandler_module_has_signatures(self):
62556255
self._test_module_has_signatures(faulthandler, unsupported_signature=unsupported_signature)
62566256

62576257
def test_functools_module_has_signatures(self):
6258-
unsupported_signature = {"reduce"}
6259-
self._test_module_has_signatures(functools, unsupported_signature=unsupported_signature)
6258+
self._test_module_has_signatures(functools)
62606259

62616260
def test_gc_module_has_signatures(self):
62626261
import gc

Modules/_functoolsmodule.c

Lines changed: 2 additions & 2 deletions

Modules/clinic/_functoolsmodule.c.h

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)