8000 Improve error message for invalid input · Issue #68 · data-apis/array-api-compat · GitHub
[go: up one dir, main page]

Skip to content
Improve error message for invalid input #68
Closed
@vnmabus

Description

@vnmabus

Right now, the error message passing an invalid object to array_namespace is

The input is not a supported array type

It would be more useful for debugging to say which class failed, I think. E.g.:

"generator" is not a supported array type
"map" is not a supported array type
"float" is not a supported array type

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0