From 58f8c6a0c7a3048f6bf1c44873ff3ce68ebda375 Mon Sep 17 00:00:00 2001 From: Jeff Whitaker Date: Wed, 30 Oct 2024 10:02:02 -0600 Subject: [PATCH] fix for createEnum type hint --- src/netCDF4/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netCDF4/__init__.pyi b/src/netCDF4/__init__.pyi index 6ed415f7a..67b23404c 100644 --- a/src/netCDF4/__init__.pyi +++ b/src/netCDF4/__init__.pyi @@ -354,7 +354,7 @@ class Dataset: def createVLType(self, datatype: npt.DTypeLike, datatype_name: str) -> VLType: ... def createEnumType( self, - datatype: np.dtype[np.integer] | type[np.integer] | type[int], + datatype: np.dtype[np.integer] | type[np.integer] | type[int] | str, datatype_name: str, enum_dict: Mapping[str, int | np.integer], ) -> EnumType: ...