Fix type hinting in Hook

Closes #3521612

Merge request reports

Loading