We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dabc954 commit bf0d61eCopy full SHA for bf0d61e
1 file changed
cuda_core/cuda/core/_utils/validators.py
@@ -28,7 +28,7 @@ def check_str_enum(value, enum_class, *, allow_none=False):
28
"""
29
if allow_none and value is None:
30
return
31
- if value not in enum_class:
+ if value not in {m.value for m in enum_class}:
32
valid = sorted(m.value for m in enum_class)
33
if allow_none:
34
valid = [None, *valid]
0 commit comments