Skip to content

OneOf.inverse for the metatensors #5163

Description

@wyli

this is a feature request to extend the inverse of OneOf which currently supports only mapping type input:

if not isinstance(data, Mapping):
raise RuntimeError("Inverse only implemented for Mapping (dictionary) data")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions