Skip to content

Commit e928bc1

Browse files
jswhit2jswhit2
authored andcommitted
update
1 parent f6696ef commit e928bc1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/netCDF4/__init__.pyi

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,10 +698,21 @@ def stringtoarr(
698698
@overload
699699
def 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
705716
def chartostring(
706717
b: npt.NDArray[np.character],
707718
encoding: str | None = None,

0 commit comments

Comments
 (0)