Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow template_folder argument to be os.PathLike[str] as is allowed in Flask #423

Open
502E532E opened this issue Mar 27, 2025 · 0 comments · May be fixed by #424
Open

Allow template_folder argument to be os.PathLike[str] as is allowed in Flask #423

502E532E opened this issue Mar 27, 2025 · 0 comments · May be fixed by #424

Comments

@502E532E
Copy link

Quart currently supports only str | None for the template folder argument of the app, while Flask also supports os.PathLike[str].

template_folder: str | None = "templates",

flask/src/flask/app.py

template_folder: str | os.PathLike[str] | None = "templates",

As Quart seems to pass the argument directly to Flask.App, I do not think the further restriction is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant