Commit 807ae70
authored
Fix(register): updated register_enum function support custom classes (#217)
Use isinstance instead of type to support instances of enum class in addition to exact same type.
Co-authored-by: u243606 <[email protected]>1 parent 0fd99c9 commit 807ae70
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments