Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

operator.{itemgetter,attrgetter,methodcaller} don't have signatures #94590

Closed
Labels
type-featureA feature request or enhancement
@eriknw

Description

@eriknw

Feature or enhancement

Update the docstrings tooperator.itemgetter,operator.attrgetter, andoperator.methodcaller so that they will automatically be given__text_signature__ strings soinspect.signature will give correct signature.

Pitch

These are the only functions inoperator that don't have signatures.operator functions are often used when programming in a functional style, and sometimes signature inspection is useful to e.g. determine whether a call is valid or whether to curry arguments.

Also, as a user, I find it nice to see accurate text signatures in the docstring and when callinghelp(func).

Previous discussion

These were intentionally skipped whenoperator functions were updated to use the argument clinic. See:

PR forthcoming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp