From 497cae244af64f4f9ae6f42b36b6e027291b56d4 Mon Sep 17 00:00:00 2001 From: 502E532E <502E532E@posteo.org> Date: Thu, 27 Mar 2025 14:48:22 +0100 Subject: [PATCH] Add os.PathLike type hint to template folder for parity with flask --- src/quart/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quart/app.py b/src/quart/app.py index a25933c..ec6a859 100644 --- a/src/quart/app.py +++ b/src/quart/app.py @@ -284,7 +284,7 @@ def __init__( static_host: str | None = None, host_matching: bool = False, subdomain_matching: bool = False, - template_folder: str | None = "templates", + template_folder: str | os.PathLike[str] | None = "templates", instance_path: str | None = None, instance_relative_config: bool = False, root_path: str | None = None,