From 6c86feaa31b0bbe72aefd3ce20094dd5484a2a75 Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Mon, 2 Oct 2023 10:54:28 -0300 Subject: [PATCH] Fix type import --- core/service/storage/container.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/service/storage/container.py b/core/service/storage/container.py index 97b9f44c88..ad9d879dd5 100644 --- a/core/service/storage/container.py +++ b/core/service/storage/container.py @@ -1,13 +1,15 @@ -from typing import Optional +from typing import TYPE_CHECKING, Optional import boto3 from dependency_injector import providers from dependency_injector.containers import DeclarativeContainer from dependency_injector.providers import Provider, Singleton -from mypy_boto3_s3 import S3Client from core.service.storage.s3 import S3Service +if TYPE_CHECKING: + from mypy_boto3_s3 import S3Client + class Storage(DeclarativeContainer): config = providers.Configuration()