Commit 82ba6ce
authored
Improve assert_type phrasing (#104081)
I'd like to make the fact that this does nothing at runtime
really obvious, since I suspect this is unintuitive for users who are
unfamiliar with static type checking.
I thought of this because of
https://discuss.python.org/t/add-arg-check-type-to-types/26384
wherein I'm skeptical that the user really did want `assert_type`.1 parent f0ad456 commit 82ba6ce
2 files changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2484 | 2484 | | |
2485 | 2485 | | |
2486 | 2486 | | |
2487 | | - | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
2488 | 2491 | | |
2489 | 2492 | | |
2490 | 2493 | | |
2491 | 2494 | | |
2492 | 2495 | | |
2493 | 2496 | | |
2494 | | - | |
2495 | | - | |
2496 | 2497 | | |
2497 | 2498 | | |
2498 | 2499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2319 | 2319 | | |
2320 | 2320 | | |
2321 | 2321 | | |
2322 | | - | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
2323 | 2326 | | |
2324 | 2327 | | |
2325 | 2328 | | |
2326 | 2329 | | |
2327 | 2330 | | |
2328 | 2331 | | |
2329 | | - | |
2330 | | - | |
2331 | 2332 | | |
2332 | 2333 | | |
2333 | 2334 | | |
| |||
0 commit comments