Remove unneeded type annotations where inference will do (#7573)

This PR removes some unneeded type annotations where we're able to infer
the type accurately.

Release Notes:

- N/A
9f4ce7fba5Marshall Bowers committed on 2/8/2024, 3:32:08 PM· committed by GitHubparentbd390aa
1 file changedLine totals unavailable