File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -698,23 +698,13 @@ def stringtoarr(
698698@overload
699699def stringtochar (
700700 a : npt .NDArray [np .character ],
701- encoding : Literal [ "none" , " None" , "bytes" ],
701+ encoding : str | None = None ,
702702 n_strlen : int | None = None ,
703- ) -> npt .NDArray [np .bytes_ ]: ...
704- @overload
705- def stringtochar (
706- a : npt .NDArray [np .character ],
707- encoding : str = ...,
708703) -> npt .NDArray [np .str_ ] | npt .NDArray [np .bytes_ ]: ...
709704@overload
710705def chartostring (
711706 b : npt .NDArray [np .character ],
712- encoding : Literal ["none" , "None" , "bytes" ] = ...,
713- ) -> npt .NDArray [np .bytes_ ]: ...
714- @overload
715- def chartostring (
716- b : npt .NDArray [np .character ],
717- encoding : str = ...,
707+ encoding : str | None = None ,
718708) -> npt .NDArray [np .str_ ] | npt .NDArray [np .bytes_ ]: ...
719709def getlibversion () -> str : ...
720710def rc_get (key : str ) -> str | None : ...
You can’t perform that action at this time.
0 commit comments