Skip to content

Using a frozen attributes to Exception class #134451

Closed
@RenameMe1

Description

@RenameMe1

Bug report

Bug description:

CycleFoundException in asyncio has frozen attributes, which has a problem related #99856

@dataclass(frozen=True)
class CycleFoundException(Exception):
"""Raised when there is a cycle when drawing the call tree."""
cycles: list[list[int]]
id2name: dict[int, str]

Do I need to fix this without using @DataClass?

CPython versions tested on:

3.11

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions