Skip to content

Commit 68ca47e

Browse files
committed
mypy
1 parent 78ccf0e commit 68ca47e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/storage/src/simcore_service_storage/api/_worker_tasks/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22

3-
from celery import Celery
3+
from celery import Celery # type: ignore[import-untyped]
44
from servicelib.logging_utils import log_context
55

66
from ...modules.celery._celery_types import register_celery_types

services/storage/src/simcore_service_storage/core/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
setup_prometheus_instrumentation,
1919
)
2020
from servicelib.fastapi.tracing import initialize_tracing
21-
from simcore_service_storage.modules.celery import setup_celery_client
2221
from starlette.middleware.base import BaseHTTPMiddleware
2322

2423
from .._meta import (
@@ -34,6 +33,7 @@
3433
from ..dsm import setup_dsm
3534
from ..dsm_cleaner import setup_dsm_cleaner
3635
from ..exceptions.handlers import set_exception_handlers
36+
from ..modules.celery import setup_celery_client
3737
from ..modules.db import setup_db
3838
from ..modules.long_running_tasks import setup_rest_api_long_running_tasks_for_uploads
3939
from ..modules.rabbitmq import setup as setup_rabbitmq
@@ -54,7 +54,7 @@
5454
_logger = logging.getLogger(__name__)
5555

5656

57-
def create_app(settings: ApplicationSettings) -> FastAPI:
57+
def create_app(settings: ApplicationSettings) -> FastAPI: # noqa: C901
5858
# keep mostly quiet noisy loggers
5959
quiet_level: int = max(
6060
min(logging.root.level + _LOG_LEVEL_STEP, logging.CRITICAL), logging.WARNING

0 commit comments

Comments
 (0)