Skip to content

Commit 327c8f1

Browse files
type hinting
1 parent 65a07e0 commit 327c8f1

File tree

1 file changed

+3
-2
lines changed
  • services/storage/src/simcore_service_storage/modules/celery

1 file changed

+3
-2
lines changed

services/storage/src/simcore_service_storage/modules/celery/_common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from functools import wraps
33
import logging
44
import traceback
5+
from typing import Any
56

67
from celery import Celery, Task
78
from celery.exceptions import Ignore
@@ -30,9 +31,9 @@ def create_app(celery_settings: CelerySettings) -> Celery:
3031
return app
3132

3233

33-
def error_handling(func: Callable):
34+
def error_handling(func: Callable[..., Any]) -> Callable[..., Any]:
3435
@wraps(func)
35-
def wrapper(task: Task, *args, **kwargs):
36+
def wrapper(task: Task, *args: Any, **kwargs: Any) -> Any:
3637
try:
3738
return func(task, *args, **kwargs)
3839
except Exception as exc:

0 commit comments

Comments
 (0)