Improve type hints for `LruCache`.