Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xarray_beam/_src/combiners.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _optimal_fanout_bins(
)
# The dict of candidates is empty if chunks_count=1, in which can there's no
# need to use a combiner.
return min(candidates, key=candidates.get) if candidates else ()
return min(candidates, key=candidates.get) if candidates else () # pyrefly: ignore[no-matching-overload]


@dataclasses.dataclass
Expand Down
2 changes: 1 addition & 1 deletion xarray_beam/_src/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def normalize_chunks(

if ... in chunks: # pyrefly: ignore[not-iterable, unsupported-operation]
default_chunks = chunks[...] # pyrefly: ignore[bad-index]
chunks = {k: chunks.get(k, default_chunks) for k in template.dims} # pyrefly: ignore[bad-assignment]
chunks = {k: chunks.get(k, default_chunks) for k in template.dims} # pyrefly: ignore[bad-assignment, missing-attribute]

defaults = previous_chunks if previous_chunks else template.sizes
chunks: dict[str, int | str] = {**defaults, **chunks} # pytype: disable=annotation-type-mismatch
Expand Down
2 changes: 1 addition & 1 deletion xarray_beam/_src/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def make_template(
"""
if lazy_vars is None:
lazy_vars = set(dataset.keys()) # pyrefly: ignore[bad-assignment]
lazy_vars.update(k for k in dataset.coords if k not in dataset.indexes)
lazy_vars.update(k for k in dataset.coords if k not in dataset.indexes) # pyrefly: ignore[missing-attribute]

result = dataset.copy()

Expand Down
Loading