From 68f0b3b390dec3571d1995f45f3becd25c1ebd14 Mon Sep 17 00:00:00 2001 From: OgnjenFrancuski Date: Wed, 22 Nov 2023 13:00:09 +0100 Subject: [PATCH] Fix lint --- rasa_sdk/endpoint.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rasa_sdk/endpoint.py b/rasa_sdk/endpoint.py index e8a94f791..eb922c51a 100644 --- a/rasa_sdk/endpoint.py +++ b/rasa_sdk/endpoint.py @@ -9,6 +9,7 @@ from ssl import SSLContext from sanic import Sanic, response from sanic.response import HTTPResponse + # catching: # - all `pkg_resources` deprecation warning from multiple dependencies # - google rcp warnings (`pkg_resources.namespaces`) @@ -16,10 +17,13 @@ # - sanic-cors (`distutils Version classes...`) with warnings.catch_warnings(): warnings.filterwarnings( - "ignore", category=DeprecationWarning, message=".*pkg_resources.*") + "ignore", category=DeprecationWarning, message=".*pkg_resources.*" + ) warnings.filterwarnings( - "ignore", category=DeprecationWarning, - message="distutils Version classes are deprecated") + "ignore", + category=DeprecationWarning, + message="distutils Version classes are deprecated", + ) from opentelemetry.sdk.trace import TracerProvider from sanic_cors import CORS from sanic.request import Request