Commit 30d0c99
authored
In general code that follows any calls to methods annotated with
`NoReturn` is considered unreachable. However calls like
`variable['foo'] = 'foo'` are not treated this way. Moreover,
`variable.__setitem__('foo', 'foo')` is interpreted properly, so this
behavior is inconsistent. After this change both variants result in
marking remaining part of the branch as unreachable.
1 parent 800e8ff commit 30d0c99
2 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4047 | 4047 | | |
4048 | 4048 | | |
4049 | 4049 | | |
4050 | | - | |
| 4050 | + | |
4051 | 4051 | | |
4052 | 4052 | | |
4053 | 4053 | | |
4054 | 4054 | | |
4055 | 4055 | | |
4056 | 4056 | | |
4057 | 4057 | | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
4058 | 4061 | | |
4059 | 4062 | | |
4060 | 4063 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
0 commit comments