summaryrefslogtreecommitdiff
path: root/cmdtests
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2024-03-06 14:43:03 -0500
committerSam James <sam@gentoo.org>2024-03-07 15:08:04 +0000
commit5c8f8d79a8b6179e50b2eb955eb848096727a9ac (patch)
tree6152d17e3b2421799cfc11e73c17de8197dd18cf /cmdtests
parentf410ba4ae94c801564f5b0bd3003e429adf2b12e (diff)
downloadgentoolkit-5c8f8d79a8b6179e50b2eb955eb848096727a9ac.tar.gz
dependencies.py: use Enum rather than StrEnum for DependencyKind
StrEnum is only supported in Python versions 3.11 and newer. Gentoolkit should not require >=3.11, so DependencyKind will use the regular Enum feature instead. The difference between StrEnum and Enum is that StrEnum members are strings and can generally be used in place of strings in APIs expecting string input. Non-StrEnum members are not strings, but you can get members values by accessing their value field (DependencyKind.DEPEND.value). Fixes: 78464ec40bad9a0f824b063506f58296cc3ed9f3 Signed-off-by: John Turner <jturner.usa@gmail.com> Closes: https://github.com/gentoo/gentoolkit/pull/46 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'cmdtests')
0 files changed, 0 insertions, 0 deletions