Repository navigation
Commit 86d2550
committed
Add test case for missing TypedDict TypeVar scope frame
This is a small follow-up to python#13678 and python#13755.
In the former diff, I added a TypeVar scope frame around
TypedDict creation. However, I had really no good reason for
doing this at the time: I wasn't able to find a bug due to
the missing frame and added it purely speculatively, out of a
desire for symmetry.
It turns out this missing frame does legitimately cause
some issues, which were reported in the latter.
So, this diff encodes one of the reported bugs as a test
case to make sure we don't regress.1 parent d560570 commit 86d2550
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2545 | 2545 | | |
2546 | 2546 | | |
2547 | 2547 | | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
2548 | 2564 | | |
2549 | 2565 | | |
2550 | 2566 | | |
| |||
0 commit comments