Commit 07bb69f
committed
Fix test_snippets_completion to not depend on typeshed overload ordering
jedi 0.20.0 bundles a newer typeshed that adds a no-arg overload for
defaultdict.__init__ as the first overload, causing format_snippet to
hit the zero-params branch and produce "defaultdict()" instead of
"defaultdict($0)". Replace defaultdict with a locally-defined function
to make the test stable across typeshed updates.1 parent bc1095f commit 07bb69f
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
0 commit comments