Skip to content

Add signatures for some builtins #111999

Description

@serhiy-storchaka

Feature or enhancement

Signature can be manually added for some builtin functions and classes that do not use Argument Clinic.

Linked PRs

Activity

  1. added
    type-featureA feature request or enhancement
    docsDocumentation in the Doc dir
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    3.13only security fixes
    on Nov 12, 2023
  2. added a commit that references this issue on Nov 12, 2023
  3. serhiy-storchaka commented on Nov 12, 2023

    @serhiy-storchaka
    MemberAuthor

    This change exposed a bug in a test: #112001.

  4. added a commit that references this issue on Nov 13, 2023
  5. added a commit that references this issue on Feb 11, 2024
  6. JelleZijlstra commented on May 24, 2024

    @JelleZijlstra
    Member

    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 arguments
    
  7. added a commit that references this issue on May 25, 2024
  8. serhiy-storchaka commented on May 25, 2024

    @serhiy-storchaka
    MemberAuthor

    Thank you for catching this @JelleZijlstra.

  9. added a commit that references this issue on May 25, 2024
  10. added a commit that references this issue on May 25, 2024
  11. added a commit that references this issue on May 25, 2024
  12. encukou commented on May 28, 2024

    @encukou
    Member

    Is there more to do here?

  13. JelleZijlstra commented on May 28, 2024

    @JelleZijlstra
    Member

    Thanks @serhiy-storchaka for the quick fix!

  14. added a commit that references this issue on Jul 17, 2024
  15. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixesdocsDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions