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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy