Optimize HideActionHook and improve related typing.

Review Request #14664 — Created Oct. 31, 2025 and updated

Information

Review Board
release-7.1.x

Reviewers

HideActionHook now stores the IDs as a set instead of a list, which is
faster for lookup in the case where multiple IDs are provided.

This and ActionHook have also been updated to take and store immutable
types, which makes it easier to take in values coming from another
source that may be immutable.

Unit tests pass.

Summary ID
Optimize HideActionHook and improve related typing.
`HideActionHook` now stores the IDs as a set instead of a list, which is faster for lookup in the case where multiple IDs are provided. This and `ActionHook` have also been updated to take and store immutable types, which makes it easier to take in values coming from another source that may be immutable.
0c8f493e3d1e8e296bad8e546487e947b77a9423
Checks run (2 succeeded)
flake8 passed.
JSHint passed.