Skip to content

Commit

Permalink
Merge pull request #1381 from Unidata/issue1378
Browse files Browse the repository at this point in the history
fix for createEnum type hint
  • Loading branch information
jswhit authored Oct 31, 2024
2 parents d203d8b + 9ce01c6 commit f7b00f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
since version 1.7.2 release
===========================
* fix type hint for createEnumType (issue #1378)
* add python 3.13 to windows wheel builds (PR #1377)

version 1.7.2 (tag v1.7.2rel)
=============================
* add static type hints (PRs #1302, #1349)
Expand Down
2 changes: 1 addition & 1 deletion src/netCDF4/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit f7b00f8

Please sign in to comment.