Commit fae45f9
committed
fix(config[is_pinned_for_op]) Replace assert with ValueError
why: assert is stripped under python -O, making the guard a silent no-op.
what:
- Replace assert op in _VALID_OPS with if/raise ValueError
- Update doctest to expect ValueError instead of AssertionError1 parent 0596a5a commit fae45f9
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
849 | | - | |
| 849 | + | |
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | | - | |
| 856 | + | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
859 | 861 | | |
860 | 862 | | |
861 | 863 | | |
| |||
0 commit comments