Fix wrapped view function comparison
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Wrapped functions are not comparable, see https://bugs.python.org/issue3564, therefore a marker is used to note when the function has been sync wrapped to allow comparison with the wrapped function instead. This ensures that multiple route decorators work without raising exceptions i.e., @app.route("/") @app.route("/a") async def index(): ... works.
authored by pgjones · committed by pgjones · parent fab26dc · Browse files · 3 files+5 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+5 added−1 removed
- tests:+2 added−1 removed
- other:+3 added−0 removed