Skip to content

Commit

Permalink
Allow str as key for variable
Browse files Browse the repository at this point in the history
  • Loading branch information
RandallPittmanOrSt committed Jul 17, 2024
1 parent fbcb79f commit ac98550
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/netCDF4/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ DateTimeArray: TypeAlias = npt.NDArray[np.object_]
GetSetItemKey: TypeAlias = (
int
| float
| str # strs that can be cooerced to ints
| np.number
| slice
| ellipsis
| list[int]
| list[float]
| list[bool]
| list[str] # strs that can be cooerced to ints
| list[str]
| list[int | float]
| list[int | bool]
| list[int | str]
Expand Down

0 comments on commit ac98550

Please sign in to comment.