Skip to content

Commit 8e9ee7f

Browse files
committed
fix(converter): wsgi_app typing issue
1 parent c049906 commit 8e9ee7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

converter/converter/converter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
logger = logging.getLogger(__name__)
1919

2020
# Add prometheus wsgi middleware to route /metrics requests
21-
app.wsgi_app = DispatcherMiddleware(app.wsgi_app, {"/metrics": make_wsgi_app()})
21+
# ignore typing issue with reassigning method
22+
app.wsgi_app = DispatcherMiddleware(app.wsgi_app, {"/metrics": make_wsgi_app()}) # type: ignore[assignment]
2223

2324

2425
convertion_timer = Histogram(

0 commit comments

Comments
 (0)