Skip to content

[Documentation Feedback] Needing more documentation on custom type handlers. #26220

Open
@CelianInfo

Description

@CelianInfo

The last example of this page show a custom IO manager that can handle multiple types by defining a static function named "type_handlers" that returns a list of type handler object.

But we lack in the documentation how we correctly define a type handler class. We don't know if we should use inheritance from a base class, use isinstance() or not.

We might raise an error when our type handler encounter the wrong type of data, but we don't know if raising an error with make our IO manager switch to the next type handler or simply fail.

A simple example of type handler is needed. I don't think it is really complicated and it will help greatly.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsRelated to documentation in general

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions