Enable mypy check in torch/_inductor/optimize_indexing.py (#107943)
Fixes #105230
```shell
$ lintrunner init && lintrunner -a torch/_inductor/optimize_indexing.py
...
ok No lint issues.
Successfully applied all patches.
```
```shell
$ mypy torch/_inductor/optimize_indexing.py
Success: no issues found in 1 source file
Pull Request resolved: https://github.com/pytorch/pytorch/pull/107943
Approved by: https://github.com/Skylion007