Commit 701cfd1
committed
Merge branch 'main' into dcreager/infer-function-calls
* main:
[red-knot] Specialize `str.startswith` for string literals (#17351)
[syntax-errors] `yield`, `yield from`, and `await` outside functions (#17298)
[red-knot] Refresh diagnostics when changing related files (#17350)
Add `Checker::import_from_typing` (#17340)
Don't add chaperone space after escaped quote in triple quote (#17216)
[red-knot] Silence errors in unreachable type annotations / class bases (#17342)35 files changed
Lines changed: 1119 additions & 264 deletions
File tree
- crates
- red_knot_python_semantic
- resources/mdtest
- call
- src
- types
- call
- red_knot_server/src
- ruff_linter
- resources/test/fixtures/syntax_errors
- src
- checkers/ast
- analyze
- rules
- fastapi/rules
- flake8_annotations
- rules
- flake8_pyi
- rules
- snapshots
- pyflakes/rules
- ruff/rules
- snapshots
- ruff_python_ast/src
- ruff_python_formatter
- resources/test/fixtures/ruff
- src
- string
- tests/snapshots
- ruff_python_parser
- src
- tests
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
451 | 453 | | |
452 | 454 | | |
453 | | - | |
454 | | - | |
455 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
456 | 459 | | |
457 | | - | |
458 | | - | |
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2508 | 2508 | | |
2509 | 2509 | | |
2510 | 2510 | | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
2511 | 2515 | | |
2512 | 2516 | | |
2513 | 2517 | | |
| |||
3112 | 3116 | | |
3113 | 3117 | | |
3114 | 3118 | | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
3115 | 3147 | | |
3116 | 3148 | | |
3117 | 3149 | | |
| |||
4293 | 4325 | | |
4294 | 4326 | | |
4295 | 4327 | | |
| 4328 | + | |
4296 | 4329 | | |
4297 | 4330 | | |
4298 | 4331 | | |
| |||
4530 | 4563 | | |
4531 | 4564 | | |
4532 | 4565 | | |
4533 | | - | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
4534 | 4572 | | |
4535 | 4573 | | |
4536 | 4574 | | |
4537 | 4575 | | |
4538 | | - | |
4539 | | - | |
4540 | | - | |
4541 | | - | |
4542 | | - | |
4543 | | - | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
| 4583 | + | |
4544 | 4584 | | |
4545 | 4585 | | |
4546 | 4586 | | |
| |||
6219 | 6259 | | |
6220 | 6260 | | |
6221 | 6261 | | |
| 6262 | + | |
| 6263 | + | |
6222 | 6264 | | |
6223 | 6265 | | |
6224 | 6266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
406 | 416 | | |
407 | 417 | | |
408 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
0 commit comments