From a51d37b27de1322e62507e2a7048a3422d1452d4 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 13 Sep 2025 15:44:03 +0200 Subject: [PATCH] Unnecessary `list` call The `sorted()` function returns a list: https://docs.python.org/3/library/functions.html#sorted --- tabulate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabulate/__init__.py b/tabulate/__init__.py index e100c09..d958cab 100644 --- a/tabulate/__init__.py +++ b/tabulate/__init__.py @@ -723,7 +723,7 @@ def escape_empty(val): } -tabulate_formats = list(sorted(_table_formats.keys())) +tabulate_formats = sorted(_table_formats.keys()) # The table formats for which multiline cells will be folded into subsequent # table rows. The key is the original format specified at the API. The value is