[ty] Include required imports in every inlay hint (#28724)
## Summary
We now include the required imports in each type inlay hint, so hints
can be applied independently. For example, applying either hint below
now adds the `Unknown` and `Literal` imports:
```python
x = (y, 1)
x = (y, 1)
```
Previously, we deduplicated imports across the entire request, leaving
the second hint without its required imports. Import deduplication now
applies within each hint.
Closes https://github.com/astral-sh/ty/issues/4560.