Repository navigation
Add signatures for some builtins #111999
Copy link
Copy link
Closed
Labels
3.13only security fixesonly security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
- addedtype-featureA feature request or enhancementA feature request or enhancementdocsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)3.13only security fixesonly security fixes
on Nov 12, 2023 This change exposed a bug in a test: #112001.
The signature for
.format_map()is now incorrect:>>> str.format_map.__text_signature__ '($self, /, mapping)' >>> "x".format_map(mapping={}) Traceback (most recent call last): File "<python-input-1>", line 1, in <module> "x".format_map(mapping={}) ~~~~~~~~~~~~~~^^^^^^^^^^^^ TypeError: str.format_map() takes no keyword argumentsReacted by Alex Waygood, Serhiy Storchaka and Erlend E. Aasland- added a commit that references this issue
on May 25, 2024 Thank you for catching this @JelleZijlstra.
Is there more to do here?
- moved this from Todo to Done in Release and Deferred blockers 🚫
on May 28, 2024 Thanks @serhiy-storchaka for the quick fix!
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertype-featureA feature request or enhancementA feature request or enhancement
Projects
- StatusShow more project fieldsDone
Feature or enhancement
Signature can be manually added for some builtin functions and classes that do not use Argument Clinic.
Linked PRs