Commit bc2a3f0
committed
fix(errors): correct failure-mode wording in _KeywordReduceMixin docs
Final review caught that the docstring and architecture/errors.md both
described the wrong failure mode: an extra attribute beyond __init__'s
keyword params raises TypeError on unpickle (loud), not a silent drop.
The silent-drop case is the opposite: a keyword param __init__ forgets
to assign to self, which reverts to its default on unpickle if it has
one.1 parent 700b6be commit bc2a3f0
2 files changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
0 commit comments