### Description of the bug As requested in https://github.com/mkdocstrings/mkdocstrings/discussions/745#discussioncomment-12538141, here is a MWE. ### To Reproduce https://github.com/patrick-kidger/griffe-error2 ### Expected behavior For arguments to display as the following: ``` tuple_arg: tuple[int, str] union_arg: Union[int, str] or int | str ``` ### Environment information <!-- Please run the following command in your repository and paste its output below it, redacting sensitive information. --> ``` - __System__: macOS-15.3.2-arm64-arm-64bit - __Python__: cpython 3.12.0 (.../.venv/bin/python3) - __Environment variables__: - __Installed packages__: - `griffe` v1.6.2 ```