Skip to content

Commit

Permalink
Fix pyright issues. Release
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Apr 14, 2023
1 parent 24cad32 commit b30caba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/boilercv/captivate/previews.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ def pad_images(images: MultipleViewable) -> MutableViewable: # type: ignore
"""Pad images to a common size and pack into an array."""
flat_image = isinstance(images, np.ndarray | DA) and (
# One-channel
images.ndim == 2
images.ndim == 2 # type: ignore # CI
# Up to four-channel
or images.ndim == 3
and images.shape[-1] <= 4
or images.ndim == 3 # type: ignore # CI
and images.shape[-1] <= 4 # type: ignore # CI
)
images: MutableViewable = [images] if flat_image else list(images)
shapes = pd.DataFrame(
Expand Down
2 changes: 1 addition & 1 deletion src/boilercv/examples/large/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from boilercv.examples.large import example_dataset


@example_dataset(
@example_dataset( # type: ignore # CI
destination="compressed", preview=DEBUG, encoding={VIDEO: {"zlib": True}}
)
def main():
Expand Down
2 changes: 1 addition & 1 deletion src/boilercv/examples/large/compress_packed.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from boilercv.examples.large import example_dataset


@example_dataset(
@example_dataset( # type: ignore # CI
source="packed",
destination="packed_compressed",
preview=DEBUG,
Expand Down

0 comments on commit b30caba

Please sign in to comment.