Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Commit82ba6ce
authored
Improve assert_type phrasing (#104081)
I'd like to make the fact that this does nothing at runtimereally obvious, since I suspect this is unintuitive for users who areunfamiliar with static type checking.I thought of this because ofhttps://discuss.python.org/t/add-arg-check-type-to-types/26384wherein I'm skeptical that the user really did want `assert_type`.1 parentf0ad456 commit82ba6ce
2 files changed
+8
-6
lines changedLines changed: 4 additions & 3 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 |
| |
|
Lines changed: 4 additions & 3 deletions
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
Comments
(0)