Skip to content

Commit 7ad760f

Browse files
committed
Try using get_args on definition
1 parent 15becdf commit 7ad760f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/zarr/core/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
TypedDict,
1717
TypeVar,
1818
cast,
19+
get_args,
1920
overload,
2021
)
2122

@@ -40,7 +41,7 @@
4041
JSON = str | int | float | Mapping[str, "JSON"] | Sequence["JSON"] | None
4142
MemoryOrder = Literal["C", "F"]
4243
AccessModeLiteral = Literal["r", "r+", "a", "w", "w-"]
43-
ANY_ACCESS_MODE: Final = "r", "r+", "a", "w", "w-"
44+
ANY_ACCESS_MODE: Final = get_args(AccessModeLiteral)
4445
DimensionNames = Iterable[str | None] | None
4546

4647
TName = TypeVar("TName", bound=str)

0 commit comments

Comments
 (0)