Commit 7247fb8
committed
Merge branch 'main' into claude/fix-issue-1858-UjARA
* main: (149 commits)
Preserve required parentheses in lambda bodies (#22747)
[`flake8-simplify`] Make fix unsafe if it deletes comments (`SIM911`) (#22661)
[`refurb`] Make fix unsafe if it deletes comments (`FURB145`) (#22670)
[`ruff`] Make fix unsafe if it deletes comments (`RUF020`) (#22664)
[ty] Add README for `ty_completion_bench` CLI tool
[ty] Update completion eval
[ty] Collect completions into a max-heap
[ty] Truncate imports and qualifications derived from completions
[ty] Get rid of high-level completion deduplication
[ty] Refactor how we sort completions
[ty] Optimize collection of "all symbols"
[ty] Speed up completions by tweaking sorts
[ty] Add new `ty_completion_bench` for ad hoc benchmarking
gitignore: ignore scratch directories in completion eval truth directory
[`pyupgrade`] Allow shadowing non-builtin bindings (`UP029`) (#22749)
[ty] Emit invalid type form for stringified annotations (#22752)
[ty] Allow `if type(x) is Y` narrowing for types other than class-literal types (#22729)
[ty] Add basic support for overloads in `ParamSpec` (#21946)
[`ruff`] Make fix unsafe if it deletes comments (`RUF019`) (#22663)
[`flake8-bugbear`] Make fix unsafe if it deletes comments (`B014`) (#22659)
...326 files changed
Lines changed: 16417 additions & 4472 deletions
File tree
- .github/workflows
- crates
- ruff_graph
- src
- ruff_linter
- resources/test/fixtures
- airflow
- flake8_blind_except
- flake8_bugbear
- flake8_pie
- flake8_simplify
- pyupgrade
- refurb
- ruff
- src
- checkers/ast/analyze
- fix
- rules
- airflow
- rules
- snapshots
- fastapi/rules
- flake8_blind_except
- rules
- snapshots
- flake8_bugbear
- rules
- snapshots
- flake8_executable
- flake8_logging
- rules
- flake8_pie
- rules
- snapshots
- flake8_pytest_style/rules
- flake8_self/rules
- flake8_simplify
- rules
- snapshots
- isort
- rules
- snapshots
- pyflakes
- pyupgrade
- rules
- snapshots
- refurb
- rules
- snapshots
- ruff
- rules
- snapshots
- ruff_python_ast/src/token
- ruff_python_formatter
- resources/test/fixtures/ruff/expression
- src/expression
- tests/snapshots
- ruff_server/src
- ruff_wasm
- src
- ruff
- ty_completion_bench
- src
- ty_completion_eval
- truth
- class-arg-completion
- ty_ide/src
- ty_module_resolver/src
- ty_project/src
- metadata
- ty_python_semantic
- resources/mdtest
- annotations
- call
- dataclasses
- decorators
- diagnostics
- expression
- function
- generics
- legacy
- pep695
- ide_support
- import
- narrow
- conditionals
- scopes
- snapshots
- subscript
- type_compendium
- type_of
- type_properties
- src
- semantic_index
- types
- call
- infer
- builder
- property_tests
- tests
- ty_server/src
- server
- api
- ty_site_packages
- src
- ty_test/src
- ty_vendored/vendor/typeshed
- stdlib
- asyncio
- email
- http
- importlib/resources
- multiprocessing
- os
- pathlib
- sys
- tkinter
- urllib
- xml/etree
- zipfile
- _path
- ty_wasm/src
- ty
- docs
- tests/cli
- docs
- fuzz/fuzz_targets
- playground
- api
- ruff/src/Editor
- ty/src
- Editor
- python/ruff-ecosystem
- scripts
- benchmarks
- ty_benchmark
- snapshots
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | | - | |
242 | | - | |
| 241 | + | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
| 292 | + | |
290 | 293 | | |
291 | 294 | | |
| 295 | + | |
292 | 296 | | |
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
| 300 | + | |
296 | 301 | | |
297 | 302 | | |
298 | 303 | | |
| 304 | + | |
| 305 | + | |
299 | 306 | | |
300 | 307 | | |
301 | 308 | | |
| 309 | + | |
| 310 | + | |
302 | 311 | | |
303 | 312 | | |
304 | 313 | | |
| |||
313 | 322 | | |
314 | 323 | | |
315 | 324 | | |
316 | | - | |
| 325 | + | |
317 | 326 | | |
318 | | - | |
| 327 | + | |
319 | 328 | | |
320 | | - | |
| 329 | + | |
321 | 330 | | |
322 | 331 | | |
323 | 332 | | |
| |||
380 | 389 | | |
381 | 390 | | |
382 | 391 | | |
383 | | - | |
| 392 | + | |
384 | 393 | | |
385 | 394 | | |
386 | | - | |
| 395 | + | |
387 | 396 | | |
388 | 397 | | |
389 | 398 | | |
| |||
446 | 455 | | |
447 | 456 | | |
448 | 457 | | |
449 | | - | |
| 458 | + | |
450 | 459 | | |
451 | 460 | | |
452 | | - | |
| 461 | + | |
453 | 462 | | |
454 | 463 | | |
455 | 464 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
| 972 | + | |
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| |||
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | | - | |
| 1011 | + | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
1047 | | - | |
| 1047 | + | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | | - | |
| 1098 | + | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
| 1136 | + | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | | - | |
64 | | - | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments