Improve types for locationHelper (#17414)
Summary of the issue:
Certain type information is not accessible in IDEs for rectangle and point structures.
Description of user facing changes
None
Description of development approach
Add type hints for tuple values