Skip to content

Commit 2c709e1

Browse files
jlahovnikbjgiraudon
authored andcommitted
fix: wrapped progress callback for asset and aws download + typing errors
1 parent b40f213 commit 2c709e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eodag/rest/utils/observability.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from __future__ import annotations
2828

2929
import logging
30-
from typing import TYPE_CHECKING
30+
from typing import TYPE_CHECKING, Optional
3131

3232
from opentelemetry import metrics, trace
3333
from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter
@@ -56,7 +56,7 @@
5656

5757
def instrument_server(
5858
eodag_api: EODataAccessGateway,
59-
fastapi_app: FastAPI = None,
59+
fastapi_app: Optional[FastAPI] = None,
6060
) -> None:
6161
"""Instrument EODAG server."""
6262
# Start OTLP exporter

0 commit comments

Comments
 (0)