Skip to content

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

Open
@502E532E

Description

@502E532E

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions