From de9f2e05d1613b1e8d6f8b9e3a8895e191fa32bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20M=C2=AA=20Fern=C3=A1ndez?= Date: Thu, 25 Apr 2024 21:03:13 +0200 Subject: [PATCH] There was still an explicit import of `magic` in `wfexs_backend.utils.io_wrappers`. Translate it into a lazy_import. --- wfexs_backend/utils/io_wrappers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wfexs_backend/utils/io_wrappers.py b/wfexs_backend/utils/io_wrappers.py index b4eabda9..a1e44932 100644 --- a/wfexs_backend/utils/io_wrappers.py +++ b/wfexs_backend/utils/io_wrappers.py @@ -30,7 +30,12 @@ import urllib.parse import uuid -import magic +from .misc import ( + lazy_import, +) + +magic = lazy_import("magic") +# import magic if TYPE_CHECKING: from typing import (