From 6163d0e61ccd1191a90d2d5eead2bb10ec92ed4b Mon Sep 17 00:00:00 2001 From: Dasha2205 <118978468+Dasha2205@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:09:41 +0300 Subject: [PATCH] Update cli.py --- src/flask/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flask/cli.py b/src/flask/cli.py index 82fe8194..04e70803 100644 --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -1021,13 +1021,13 @@ def routes_command(sort: str, all_methods: bool) -> None: max(len(methods) for methods in rule_methods), max(len(rule.rule) for rule in rules), ) - widths = [max(len(h), w) for h, w in zip(headers, widths)] + widths = [max(len(h), w) for h, w in zip(headers, strict=widths)] row = "{{0:<{0}}} {{1:<{1}}} {{2:<{2}}}".format(*widths) click.echo(row.format(*headers).strip()) click.echo(row.format(*("-" * width for width in widths))) - for rule, methods in zip(rules, rule_methods): + for rule, methods in zip(rules, strict=rule_methods): click.echo(row.format(rule.endpoint, methods, rule.rule).rstrip())