Skip to content

TypeError to show invoked types if possible #517

@pschella

Description

@pschella

It is really frustrating at times that TypeError shows the types of the function arguments it accepts but prints the values for the types that it actually got. If the print of the value does not contain the type it is hard to diagnose the exact problem.
If it is in any way possible to print the types of the arguments it got instead, I believe it would be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions