[inductor] Enable Mypy Checking for torch/_inductor/codecache.py (#108789)
Summary: Add type annotations to torch/_inductor/codecache.py and enable mypy checking
Test Plan:
`lintrunner torch/_inductor/*.py`
`python test/inductor/test_max_autotune.py`
`python test/inductor/test_aot_inductor.py`
`python test/inductor/test_torchinductor.py`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108789
Approved by: https://github.com/Skylion007, https://github.com/eellison