Skip to content

Commit

Permalink
Type data/_utils (#1740)
Browse files Browse the repository at this point in the history
  • Loading branch information
vectorvp authored Nov 21, 2024
1 parent 48ece5e commit 99a7b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lightly/data/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@

# Copyright (c) 2020. Lightly AG and its affiliates.
# All Rights Reserved
from __future__ import annotations

import os
from typing import List, Tuple

import tqdm.contrib.concurrent as concurrent
from PIL import Image, UnidentifiedImageError

from lightly.data import LightlyDataset


def check_images(data_dir: str) -> Tuple[List[str], List[str]]:
def check_images(data_dir: str) -> tuple[list[str], list[str]]:
"""Identifies corrupt and healthy images in the specified directory.
The function attempts to open each image file in the directory to verify
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ exclude = '''(?x)(
lightly/data/_helpers.py |
lightly/data/_image_loaders.py |
lightly/data/_video.py |
lightly/data/_utils.py |
lightly/data/multi_view_collate.py |
lightly/core.py |
lightly/api/api_workflow_compute_worker.py |
Expand Down

0 comments on commit 99a7b13

Please sign in to comment.