Commit ee2f2bd
Enhance TypedDict docs around required/optional keys (GH-109547)
As discussed in comments to GH-109544, the semantics of this attribute
are somewhat confusing. Add a note explaining its limitations and
steering users towards __required_keys__ and __optional_keys__ instead.
(cherry picked from commit f49958c)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent bbce8bd commit ee2f2bd
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2392 | 2392 | | |
2393 | 2393 | | |
2394 | 2394 | | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
2395 | 2402 | | |
2396 | 2403 | | |
2397 | 2404 | | |
| |||
2427 | 2434 | | |
2428 | 2435 | | |
2429 | 2436 | | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
2430 | 2445 | | |
2431 | 2446 | | |
2432 | 2447 | | |
| |||
0 commit comments