app.py:encode_options: Improve type hints

master
Felix Stupp 2 years ago
parent 04565affb2
commit fd109ea1e5
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -203,7 +203,7 @@ Pony(flask_app)
@flask_app.template_filter()
def encode_options(opts: dict[str, Any]):
def encode_options(opts: Mapping[str, Any]) -> str:
return urlencode({k: str(v) for k, v in opts.items()}, quote_via=quote_plus)

Loading…
Cancel
Save