Commit 04e7dee
authored
Add typing to
* Add overloads to `unittest.mock._patch_dict.__call__`
* Simplify _patch_dict.__call__ to single overload
_F's bound (Callable[..., Any]) already covers the class and async
cases, and generic solving binds to the actual argument type rather
than the bound, so the separate _TT/_AF overloads were redundant.unittest.mock._patch_dict.__call__ (#16310)1 parent 050197c commit 04e7dee
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
0 commit comments