Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Lib/asyncio/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ class NodeType(Enum):
TASK = 2


@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]
def __init__(
self,
cycles: list[list[int]],
id2name: dict[int, str],
) -> None:
super().__init__(cycles, id2name)
self.cycles = cycles
self.id2name = id2name



# ─── indexing helpers ───────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deleted @dataclass for asyncio.tools. CycleFoundException class
Loading