We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
asyncio.tools.CycleFoundException
1 parent 967e269 commit bd4c807Copy full SHA for bd4c807
Lib/asyncio/tools.py
@@ -13,11 +13,17 @@ class NodeType(Enum):
13
TASK = 2
14
15
16
-@dataclass(frozen=True)
17
class CycleFoundException(Exception):
18
"""Raised when there is a cycle when drawing the call tree."""
19
- cycles: list[list[int]]
20
- id2name: dict[int, str]
+ def __init__(
+ self,
+ cycles: list[list[int]],
21
+ id2name: dict[int, str],
22
+ ) -> None:
23
+ super().__init__(cycles, id2name)
24
+ self.cycles = cycles
25
+ self.id2name = id2name
26
+
27
28
29
# ─── indexing helpers ───────────────────────────────────────────
Misc/NEWS.d/next/Library/2025-05-22-14-12-53.gh-issue-134451.M1rD-j.rst
@@ -0,0 +1 @@
1
+Converted ``asyncio.tools.CycleFoundException`` from dataclass to a regular exception type.
0 commit comments