diff --git a/pym/gentoolkit/dependencies.py b/pym/gentoolkit/dependencies.py index f296e27c..c6abff0b 100644 --- a/pym/gentoolkit/dependencies.py +++ b/pym/gentoolkit/dependencies.py @@ -13,7 +13,7 @@ import itertools from functools import cache -from enum import StrEnum +from enum import Enum from typing import List, Dict import portage @@ -28,7 +28,7 @@ # ======= -class DependencyKind(StrEnum): +class DependencyKind(Enum): DEPEND = "DEPEND" RDEPEND = "RDEPEND" BDEPEND = "BDEPEND" @@ -104,13 +104,13 @@ def _get_depend(self, env_vars, raw=False): @cache def get_raw_depends(self) -> str: - return self._get_depend([depkind for depkind in DependencyKind], raw=True) + return self._get_depend([depkind.value for depkind in DependencyKind], raw=True) @cache def get_depends(self) -> Dict[DependencyKind, List[Atom]]: depends = dict() for depkind in DependencyKind: - depend = self._get_depend([depkind]) + depend = self._get_depend([depkind.value]) depends[depkind] = depend return depends