Repository navigation
Commit c8991a5
authored
Declare nullable argument defaults directly (#9560)
* Replace concrete omission wrappers with typed defaults
Declare fifteen concrete argument defaults directly across compression, array, binascii, process helpers, epoll and match methods. Keep bool conversion and argument release at their current body locations, acquired buffer cleanup order, mkfifo path-before-fd conversion, and existing signed bound semantics.
Preserve symbolic, callback-sensitive and stateful omission defaults. No tests, assertions or Lib files changed. Source-reviewed against CPython 3.15.0 d220409a13b77de7a6c30abe16ea90db01528edc; native validation remains limited by the available dependency closure.
Assisted-by: OpenAI Codex:model version not exposed
* Preserve native omitted argument fast paths
Restore runtime defaults whose concrete literal lowering adds Python object creation, conversion, or reference management on omitted arguments. Keep only cost-preserving None default cleanup, where applicable. No test code or expectations changed.
Assisted-by: OpenAI Codex:model version not exposed
* Infer epoll exit argument names from fields
Use the signature names as the Rust field names so explicit name attributes are redundant. Match the existing multiprocessing ExitArgs dead-code annotation for intentionally ignored context-manager arguments; keep the function body and argument lifetimes unchanged.
Assisted-by: OpenAI Codex:model version not exposed
* Remove unused regex OptionalArg import
The nullable match default no longer uses OptionalArg. Remove the stale import so Clippy with -Dwarnings passes; no runtime or test changes.
Assisted-by: OpenAI Codex:model version not exposed1 parent 94a2b2d commit c8991a5
4 files changed
Lines changed: 18 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| 522 | + | |
522 | 523 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
529 | 530 | | |
530 | 531 | | |
531 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 409 | | |
413 | 410 | | |
414 | 411 | | |
415 | 412 | | |
416 | 413 | | |
417 | 414 | | |
418 | 415 | | |
419 | | - | |
420 | | - | |
| 416 | + | |
| 417 | + | |
421 | 418 | | |
422 | 419 | | |
423 | 420 | | |
| |||
433 | 430 | | |
434 | 431 | | |
435 | 432 | | |
436 | | - | |
437 | | - | |
438 | | - | |
| 433 | + | |
439 | 434 | | |
440 | 435 | | |
441 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
342 | | - | |
| 341 | + | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
| 651 | + | |
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
1107 | | - | |
| 1106 | + | |
| 1107 | + | |
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
| 1118 | + | |
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
| 1136 | + | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
| |||
0 commit comments