Skip to content

Remove max-specialization-depth trick #1415

@sharkdp

Description

@sharkdp

Revert the changes in astral-sh/ruff#20988 and only fall back to C[Divergent] is there are actual cyclic references, not if there are simply too many layers of specialization.

In other words, prevent the Divergent type in an example like this: https://play.ty.dev/e9b94a3d-704c-4078-90fc-ed9915cfb5e7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions