Commit 1aa8a1b
committed
fix: simplify __setattr__ guard — remove unreachable InstanceState branch
The isinstance(value, InstanceState) check was unreachable because
_build_configuration uses vars(self) directly, bypassing __setattr__.
Simplify to always reject assignments to state names via __setattr__.
Fixes 100% branch coverage.1 parent 63bc62b commit 1aa8a1b
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
236 | 233 | | |
237 | 234 | | |
238 | 235 | | |
| |||
0 commit comments