🐛 Fix `flask.escape` warning for internal tests (#9468)

* fix flask.escape warning

* 📝 Fix highlight in docs for WSGI

---------

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Samuel Colvin 2023-05-09 15:32:00 +01:00 committed by GitHub
parent fe55402776
commit 5100a98ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ Then wrap the WSGI (e.g. Flask) app with the middleware.
And then mount that under a path.
```Python hl_lines="2-3 22"
```Python hl_lines="2-3 23"
{!../../../docs_src/wsgi/tutorial001.py!}
```

View File

@ -1,6 +1,7 @@
from fastapi import FastAPI
from fastapi.middleware.wsgi import WSGIMiddleware
from flask import Flask, escape, request
from flask import Flask, request
from markupsafe import escape
flask_app = Flask(__name__)