We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7739638 + 8ec67b5 commit 7b7fecfCopy full SHA for 7b7fecf
1 file changed
src/stratis_cli/_constants.py
@@ -42,4 +42,4 @@ def from_str(code_str):
42
:rtype: YesOrNo
43
:raises: StopIteration
44
"""
45
- return next(item for item in list(YesOrNo) if code_str == str(item))
+ return next(item for item in YesOrNo if code_str == str(item))
0 commit comments