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.
If using
from __future__ import annotationsor string annotations, the return type detection does not work.The crucial part is in
sensei._internal._core._endpoint.Endpoint._response_handle_mapwhere there are checks likemodel is strwhich evaluates false if model is'str'. I'm not sure how to solve this.