[Form] Add missing type hint
merged branch armetiz/master (PR #8045)

This PR was squashed before being merged into the master branch (closes #8045).

Discussion
----------

[Form] Add missing type hint

Commits
-------

4dccee6 [Form] Add missing type hint