Skip to content

Documented parameter names of some inspect functions don't match the implementation #161591

Open

Description

@thejesh23

Documentation

A few functions in the inspect docs show a parameter name that differs from the real one. Anyone copying the name from the docs gets a TypeError:

>>> import inspect
>>> inspect.signature(callable=len)
TypeError: signature() got an unexpected keyword argument 'callable'
>>> inspect.signature(obj=len)
<Signature (obj, /)>

Linked PRs

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

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions