Skip to content

Commit 6d3fa90

Browse files
committed
Possible type fix
1 parent ef16d49 commit 6d3fa90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/py_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace ov::genai::pybind::utils {
1919
// When StreamerVariant is used utf-8 decoding is done by pybind and can lead to exception on incomplete texts.
2020
// Therefore strings decoding should be handled with PyUnicode_DecodeUTF8(..., "replace") to not throw errors.
2121
using PyBindStreamerVariant = std::variant<
22-
std::function<std::optional<uint16_t>(std::string)>,
22+
std::function<std::optional<uint16_t>(py::str)>,
2323
std::shared_ptr<StreamerBase>,
2424
std::monostate>;
2525

0 commit comments

Comments
 (0)