From 6cf7285a58063f9668318b4c3081bb184c1cb918 Mon Sep 17 00:00:00 2001 From: VisualDust Date: Wed, 27 Sep 2023 12:33:39 +0800 Subject: [PATCH] instant fix for import errors --- neetbox/integrations/resource.py | 3 +-- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/neetbox/integrations/resource.py b/neetbox/integrations/resource.py index e21d0fe4..65190065 100644 --- a/neetbox/integrations/resource.py +++ b/neetbox/integrations/resource.py @@ -31,7 +31,7 @@ TimeRemainingColumn, TransferSpeedColumn, ) - +from PIL import Image _loader_pool: Dict[ str, "ResourceLoader" @@ -137,7 +137,6 @@ def __init__( verbose=False, ): pkg.is_installed("PIL", try_install_if_not="pillow") - from PIL import Image super().__init__(folder, file_types, sub_dirs, async_scan, verbose) diff --git a/pyproject.toml b/pyproject.toml index b390bb12..12a451ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "neetbox" -version = "0.1.514" +version = "0.1.515" description = "NEETBox contains useless CV code snippets." license = "MIT" authors = ["VisualDust "]