Commit 0f5e28f
committed
Add __annotations__ case to ObjectProxy.__delattr__
ObjectProxy.__setattr__ has special handling for both __qualname__
and __annotations__, forwarding them to both the proxy and the
wrapped object. However, __delattr__ only handles __qualname__ and
misses __annotations__, so deleting annotations on the proxy doesn't
propagate to the wrapped object.
This adds the missing __annotations__ branch to __delattr__ to match
the behavior of __setattr__.1 parent 27c5248 commit 0f5e28f
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
0 commit comments