Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OgnjenFrancuski committed Nov 22, 2023
1 parent 6a90ae6 commit 68f0b3b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rasa_sdk/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@
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`)
# - open telemetry (`pkg_resources`)
# - 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
Expand Down

0 comments on commit 68f0b3b

Please sign in to comment.