Commit 70bbd20
committed
fix(D3b): set_model also requires callable derive; reset inside try (Greptile)
- Greptile: runtime_checkable only checks the derive attribute exists
(and not even callability pre-3.12); also require callable(model.derive)
so a non-callable derive is rejected at swap time.
- Greptile: move the leading MoodRegistry._reset() inside the try for
consistency with the test_mood.py fixture pattern.1 parent b4b8402 commit 70bbd20
2 files changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
125 | 124 | | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments