From f57ded6999217ad6ac21c70fabdf794b72077fe7 Mon Sep 17 00:00:00 2001 From: Terrance Date: Sun, 16 Nov 2025 23:52:31 +0000 Subject: [PATCH] Fix list command's table header order --- news/13652.trivial.rst | 0 src/pip/_internal/commands/list.py | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 news/13652.trivial.rst diff --git a/news/13652.trivial.rst b/news/13652.trivial.rst new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/pip/_internal/commands/list.py b/src/pip/_internal/commands/list.py index ad27e45ce93..f347e3fd306 100644 --- a/src/pip/_internal/commands/list.py +++ b/src/pip/_internal/commands/list.py @@ -341,15 +341,15 @@ def wheel_build_tag(dist: BaseDistribution) -> str | None: if has_build_tags: header.append("Build") + has_editables = any(x.editable for x in pkgs) + if has_editables: + header.append("Editable project location") + if options.verbose >= 1: header.append("Location") if options.verbose >= 1: header.append("Installer") - has_editables = any(x.editable for x in pkgs) - if has_editables: - header.append("Editable project location") - data = [] for i, proj in enumerate(pkgs): # if we're working on the 'outdated' list, separate out the