moved import of optional packages into classes #6

Merged
brian merged 4 commits from make-optional-parts-independent into main 2025-09-17 12:39:00 +02:00
2 changed files with 0 additions and 5 deletions
Showing only changes of commit e5c4025aeb - Show all commits
@@ -15,8 +15,6 @@ from python_repositories.interfaces import (
# Handle optional dependencies
if find_spec("minio") is not None:
import minio
else:
minio = None
class MinioAdapter(
@@ -17,9 +17,6 @@ from python_repositories.interfaces import (
if find_spec("redis") is not None:
import redis
from redis.commands.json.path import Path as RedisPath
else:
redis = None # type: ignore
RedisPath = None # type: ignore
class RedisAdapter(