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: ...