Commit 4f90780
authored
Fix: IS_IN_SET with multiple values (#742)
* Fix: IS_IN_SET with multiple values
strkeys is a map object (a lazy iterator in Python 3, unlike Python 2 where it returned a list).
This means If you try to check membership with **in**, it exhausts the iterator progressively, this leads to very funny errors and sometimes the validator would seem to work correctly depending on the order.
* chore: add tests to make sure IS_IN_SET multiple stays fixed1 parent 06433f5 commit 4f90780
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
| 593 | + | |
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
| |||
0 commit comments