Skip to content

Commit 48ddecb

Browse files
authored
Update stubgen fixing __new__ signature (#91)
1 parent 53af191 commit 48ddecb

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ openssl = { version = "0.10", features = ["vendored"] }
1818
numpy = "0.23.0"
1919
unsafe_cell_slice = "0.2.0"
2020
serde_json = "1.0.128"
21-
pyo3-stub-gen = "0.6.2"
21+
pyo3-stub-gen = "0.7.0"
2222
opendal = { version = "0.51.0", features = ["services-http"] }
2323
tokio = { version = "1.41.1", features = ["rt-multi-thread"] }
2424
zarrs_opendal = "0.5.0"

python/zarrs/_internal.pyi

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file is automatically generated by pyo3_stub_gen
22
# ruff: noqa: E501, F401
33

4+
import builtins
45
import typing
56
from enum import Enum, auto
67

@@ -13,13 +14,13 @@ class Basic:
1314
class CodecPipelineImpl:
1415
def __new__(
1516
cls,
16-
metadata,
17+
metadata: builtins.str,
1718
*,
18-
validate_checksums=...,
19-
store_empty_chunks=...,
20-
chunk_concurrent_minimum=...,
21-
chunk_concurrent_maximum=...,
22-
num_threads=...,
19+
validate_checksums: builtins.bool | None = None,
20+
store_empty_chunks: builtins.bool | None = None,
21+
chunk_concurrent_minimum: builtins.int | None = None,
22+
chunk_concurrent_maximum: builtins.int | None = None,
23+
num_threads: builtins.int | None = None,
2324
): ...
2425
def retrieve_chunks_and_apply_index(
2526
self,
@@ -33,18 +34,18 @@ class CodecPipelineImpl:
3334
) -> None: ...
3435

3536
class FilesystemStoreConfig:
36-
root: str
37+
root: builtins.str
3738

3839
class HttpStoreConfig:
39-
endpoint: str
40+
endpoint: builtins.str
4041

4142
class WithSubset:
4243
def __new__(
4344
cls,
4445
item: Basic,
4546
chunk_subset: typing.Sequence[slice],
4647
subset: typing.Sequence[slice],
47-
shape: typing.Sequence[int],
48+
shape: typing.Sequence[builtins.int],
4849
): ...
4950
...
5051

0 commit comments

Comments
 (0)