Skip to content

Commit

Permalink
fix(pikaur_meta_helpers: dep_tree): use NamedTuple instead of dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Sep 11, 2024
1 parent ca57f21 commit 10df8fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pikaur_meta_helpers/dep_tree.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from dataclasses import dataclass
from typing import cast
from typing import NamedTuple, cast

import pyalpm

Expand Down Expand Up @@ -51,8 +51,7 @@ def __post_init__(self) -> None:
self.description = self.package.desc


@dataclass
class StackItem:
class StackItem(NamedTuple):
item_type: str # 'pkg' or 'title'
content: str # Package name or title text
level: int # Current level in the dependency tree
Expand Down

0 comments on commit 10df8fa

Please sign in to comment.