From d399194b6cb30e845ee4c9236445cd4af786ea0e Mon Sep 17 00:00:00 2001 From: Liam <101684827+SkiingIsFun123@users.noreply.github.com> Date: Fri, 10 Jun 2022 00:28:55 -0700 Subject: [PATCH] Update typing_route.py --- tests/typing/typing_route.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/typing/typing_route.py b/tests/typing/typing_route.py index ba49d132..db0545d4 100644 --- a/tests/typing/typing_route.py +++ b/tests/typing/typing_route.py @@ -41,7 +41,8 @@ def tuple_status_enum() -> tuple[str, int]: def tuple_headers() -> tuple[str, dict[str, str]]: return "Hello, World!", {"Content-Type": "text/plain"} - +#Returns "index.html" when "/template" or "/template" with parameter "name" included is accessed by the user +#"name" is passed as an argument for the html document when rendering it only if it was specified in the url @app.route("/template") @app.route("/template/") def return_template(name: str | None = None) -> str: