<!-- Thank you for taking the time to report an issue! We're glad to have you involved with Ruff. If you're filing a bug report, please consider including the following information: * List of keywords you searched for before creating this issue. Write them down here so that others can find this issue more easily and help provide feedback. e.g. "RUF001", "unused variable", "Jupyter notebook" * A minimal code snippet that reproduces the bug. * The command you invoked (e.g., `ruff /path/to/file.py --fix`), ideally including the `--isolated` flag. * The current Ruff settings (any relevant sections from your `pyproject.toml`). * The current Ruff version (`ruff --version`). --> (part of #14172) Understand `typing.Union` in annotations. `Union` is similar to the union types created with `|`. https://typing.readthedocs.io/en/latest/spec/historical.html#union-and-optional