From 00544d3b9861289ef7158682304adcf50e4dbc52 Mon Sep 17 00:00:00 2001 From: Theodore Tucker Date: Sun, 28 Jun 2026 16:07:14 +0100 Subject: [PATCH] _PipelineSelection: implement __repr__ sphinx-click uses __repr__ when rendering the default option of a click.choice in the documentation. Implementing this on _PipelineSelection gives more helpful (and reproducible) documentation than the default representation, ``. --- src/buildstream/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/buildstream/types.py b/src/buildstream/types.py index 0cc2106b3..563fc18ae 100644 --- a/src/buildstream/types.py +++ b/src/buildstream/types.py @@ -310,6 +310,9 @@ class _PipelineSelection(FastEnum): def __str__(self): return str(self.value) + def __repr__(self): + return str(self.value) + # _ProjectInformation() #