The following snippet correctly causes Ruff to emit PYI025:
from collections.abc import Set as Set
__all__ = ["Set"]
But if you apply the autofix, it "fixes" it to this, which is... not correct:
from collections.abc import Set as AbstractSet
AbstractSet = ["Set"]