When using nested type aliases that overlap, the deduplication of union items seems to happen before type aliases are resolved, resulting in unions such as str | str being shown. I encountered this while using the sentence_transformers library, hence the type alias names below.
Activity