Skip to content

Add kernel enum#4489

Open
codefiles wants to merge 1 commit intoarchlinux:masterfrom
codefiles:add-kernel-enum
Open

Add kernel enum#4489
codefiles wants to merge 1 commit intoarchlinux:masterfrom
codefiles:add-kernel-enum

Conversation

@codefiles
Copy link
Copy Markdown
Contributor

@codefiles codefiles commented Apr 28, 2026

  • Add DEFAULT_KERNEL constant so it is in one location.
  • Small refinement to preset parameter of MenuItemGroup.from_enum().

@codefiles codefiles requested a review from Torxed as a code owner April 28, 2026 00:46
enum_cls: type[Enum],
sort_items: bool = False,
preset: Enum | None = None,
preset: Iterable[Enum] | Enum | None = None,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preset can be an iterable like it is in this case with list[Kernel].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant