From 39f403da0d64ccc3d3e60cd730b334e155de12d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Prchl=C3=ADk?= Date: Thu, 2 Jan 2025 22:22:05 +0100 Subject: [PATCH] Add `when` field to inherited fields of all plugins Added recently, this field is accepted for all phases, and sice we do not detect inherited fields but use a static list, the list needs to be extended to avoid showing the field in every plugin's docs. --- docs/scripts/generate-plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scripts/generate-plugins.py b/docs/scripts/generate-plugins.py index 9368f7311d..eef89095ed 100755 --- a/docs/scripts/generate-plugins.py +++ b/docs/scripts/generate-plugins.py @@ -57,7 +57,7 @@ def _is_inherited( # TODO: for now, it's a list, but inspecting the actual tree of classes # would be more generic. It's good enough for now. - return field.name in ('name', 'where', 'order', 'summary', 'enabled', 'result') + return field.name in ('name', 'where', 'when', 'order', 'summary', 'enabled', 'result') def container_ignored_fields(container: ContainerClass) -> list[str]: