Commit d65d3f6
Allow pickling
* Allow pickling `Cancelled`
* Add newsfragment
* Use `collections.abc.Callable` not `typing.Callable`
* Fix coverage
* Generalize __reduce__
* Address PR review
Co-authored-by: jakkdl <h6+github@pm.me>
* Add a test for coverage reasons
* Revert generalization
It's too much complexity to do it correctly.
* Ensure that we get any extra cases that need pickling
* Remove now-unnecessary new `__new__`
---------
Co-authored-by: jakkdl <h6+github@pm.me>Cancelled (#3250)1 parent 9135b3d commit d65d3f6
3 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
2235 | 2236 | | |
2236 | 2237 | | |
2237 | 2238 | | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
2238 | 2246 | | |
2239 | 2247 | | |
2240 | 2248 | | |
| |||
0 commit comments