forked frompython/cpython
- Notifications
You must be signed in to change notification settings - Fork6
Commit74be000
Improve assert_type phrasing (pythonGH-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`.(cherry picked from commit82ba6ce)Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>1 parentb07bae6 commit74be000
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2438 | 2438 | | |
2439 | 2439 | | |
2440 | 2440 | | |
2441 | | - | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
2442 | 2445 | | |
2443 | 2446 | | |
2444 | 2447 | | |
2445 | 2448 | | |
2446 | 2449 | | |
2447 | 2450 | | |
2448 | | - | |
2449 | | - | |
2450 | 2451 | | |
2451 | 2452 | | |
2452 | 2453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2250 | 2250 | | |
2251 | 2251 | | |
2252 | 2252 | | |
2253 | | - | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
2254 | 2257 | | |
2255 | 2258 | | |
2256 | 2259 | | |
2257 | 2260 | | |
2258 | 2261 | | |
2259 | 2262 | | |
2260 | | - | |
2261 | | - | |
2262 | 2263 | | |
2263 | 2264 | | |
2264 | 2265 | | |
| |||
0 commit comments
Comments
(0)