From 684c90a7b48ffb93aabe59ad1d15914c7639be4f Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Mon, 10 Jun 2024 13:46:40 +0200 Subject: [PATCH] feat: renamed --- music_kraken/download/components/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music_kraken/download/components/__init__.py b/music_kraken/download/components/__init__.py index 030d48f..effc09f 100644 --- a/music_kraken/download/components/__init__.py +++ b/music_kraken/download/components/__init__.py @@ -177,7 +177,7 @@ class Node(Generator[P]): ): self.value = value self.depth = 0 - self.same_level_index: int = 0 + self.index: int = 0 self.children: List[Node[P]] = kwargs.get("children", []) @@ -196,7 +196,7 @@ class Node(Generator[P]): def __iter__(self, **kwargs) -> Generator[Node[P], None, None]: _level_index_map: Dict[int, int] = kwargs.get("level_index_map", defaultdict(lambda: 0)) - self.same_level_index = _level_index_map[self.depth] + self.index = _level_index_map[self.depth] yield self _level_index_map[self.depth] += 1