Skip to content

Return type detections does not work with __future__.annotations #30

@bvolkmer

Description

@bvolkmer

If using from __future__ import annotations or string annotations, the return type detection does not work.
The crucial part is in sensei._internal._core._endpoint.Endpoint._response_handle_map where there are checks like model is str which evaluates false if model is 'str'. I'm not sure how to solve this.

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