File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -698,10 +698,21 @@ def stringtoarr(
698698@overload
699699def stringtochar (
700700 a : npt .NDArray [np .character ],
701- encoding : str | None = None ,
701+ encoding : Literal ["none" , "None" , "bytes" ],
702+ n_strlen : int | None = None ,
703+ ) -> npt .NDArray [np .bytes_ ]: ...
704+ @overload
705+ def stringtochar (
706+ a : npt .NDArray [np .character ],
707+ encoding : str | None = None ,
702708 n_strlen : int | None = None ,
703709) -> npt .NDArray [np .str_ ] | npt .NDArray [np .bytes_ ]: ...
704710@overload
711+ def chartostring (
712+ b : npt .NDArray [np .character ],
713+ encoding : Literal ["none" , "None" , "bytes" ] = ...,
714+ ) -> npt .NDArray [np .bytes_ ]: ...
715+ @overload
705716def chartostring (
706717 b : npt .NDArray [np .character ],
707718 encoding : str | None = None ,
You can’t perform that action at this time.
0 commit comments