1 | | This also can be done, the current fix effectively prints the wrapped function name in case of partial, but yes may be this is fine (copied from the tests) |
2 | | |
3 | | `def robust_callback():` |
4 | | ` raise ForcedError("robust callback")` |
5 | | |
6 | | `robust_callback_partial = partial(robust_callback)` |
7 | | |
8 | | `>>> getattr(robust_callback_partial, "__qualname__", robust_callback_partial)` |
9 | | `functools.partial(<function robust_callback at 0x101287600>)` |
10 | | `>>> getattr(robust_callback, "__qualname__", robust_callback)` |
11 | | `'robust_callback'` |
12 | | |
13 | | I could update the PR |
| 1 | This also can be done, the current fix effectively prints the wrapped function name in case of partial, but yes may be this is fine. Updated the PR. |