Skip to content

Commit 4dad7bb

Browse files
committed
fix type
1 parent 0ff7867 commit 4dad7bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/zarrs/_internal.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CodecPipelineImpl:
3030
chunk_concurrent_maximum: builtins.int | None = None,
3131
num_threads: builtins.int | None = None,
3232
direct_io: builtins.bool = False,
33-
subchunk_write_order: builtins.str = "random",
33+
subchunk_write_order: typing.Literal["C", "random"] = "random",
3434
) -> CodecPipelineImpl: ...
3535
def retrieve_chunks_and_apply_index(
3636
self,

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ impl<'py> FromPyObject<'_, 'py> for SubchunkWriteOrderWrapper {
8080

8181
impl pyo3_stub_gen::PyStubType for SubchunkWriteOrderWrapper {
8282
fn type_output() -> pyo3_stub_gen::TypeInfo {
83-
pyo3_stub_gen::TypeInfo::builtin("str")
83+
pyo3_stub_gen::TypeInfo::with_module("typing.Literal['C', 'random']", "typing".into())
8484
}
8585
}

0 commit comments

Comments
 (0)