Commit 87ec940
fix bug w/ kwonly parameter & notrequired typeddict item
Summary:
Handle a case that gave a weird error in python/typing#1918
Keyword only parameters were always treated as not having defaults, which made them incompatible with notrequired typeddict items.
Reviewed By: rchen152
Differential Revision: D69222079
fbshipit-source-id: 5f4ac60d5bc3f7fa5da4b3709f0364f21f8d94aa1 parent 1a5e6f2 commit 87ec940
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1157 | 1157 | | |
1158 | 1158 | | |
1159 | 1159 | | |
| 1160 | + | |
1160 | 1161 | | |
1161 | 1162 | | |
1162 | 1163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2584 | 2584 | | |
2585 | 2585 | | |
2586 | 2586 | | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
2587 | 2600 | | |
2588 | 2601 | | |
2589 | 2602 | | |
| |||
0 commit comments