Skip to content

Commit

Permalink
Add when field to inherited fields of all plugins
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
happz committed Jan 7, 2025
1 parent 7501a7b commit 4ca98b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/scripts/generate-plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 4ca98b5

Please sign in to comment.