Skip to content

Commit da1ae20

Browse files
committed
type annotation
1 parent 7139962 commit da1ae20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cads_processing_api_service/exceptions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import functools
1818
import traceback
19+
from typing import Any, Callable
1920

2021
import attrs
2122
import fastapi
@@ -64,9 +65,9 @@ class RateLimitExceeded(ogc_api_processes_fastapi.exceptions.OGCAPIException):
6465
retry_after: int = 0
6566

6667

67-
def exception_logger(f):
68+
def exception_logger(f: Callable[..., Any]) -> Callable[..., Any]:
6869
@functools.wraps(f)
69-
def wrapper(*args, **kwargs):
70+
def wrapper(*args: Any, **kwargs: Any) -> Any:
7071
try:
7172
res = f(*args, **kwargs)
7273
except requests.exceptions.ReadTimeout:

0 commit comments

Comments
 (0)