]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100039: enhance __signature__ to work with str and callables (GH-100168)
authorEthan Furman <ethan@stoneleaf.us>
Fri, 16 Dec 2022 20:30:47 +0000 (12:30 -0800)
committerGitHub <noreply@github.com>
Fri, 16 Dec 2022 20:30:47 +0000 (12:30 -0800)
commita5a7cea202d34ca699d9594d428ba527ef7ff2ce
tree5176c390d975ad480718c43245f02a78a55a2b39
parent5234e1cbea686e38392f113707db322ad8405048
gh-100039: enhance __signature__ to work with str and callables (GH-100168)

Callables should be either class- or static-methods.
Enum now uses the classmethod version to greatly improve the help
given for enums and flags.
Lib/enum.py
Lib/inspect.py
Lib/test/test_enum.py
Lib/test/test_inspect.py
Misc/NEWS.d/next/Library/2022-12-10-20-52-28.gh-issue-100039.zDqjT4.rst [new file with mode: 0644]