Commit 902985d
Fix
* Initial plan
* fix: restore def-line source range before entering function scope so co_firstlineno is correct
Agent-Logs-Url: https://github.com/RustPython/RustPython/sessions/94701403-2011-4525-88f1-6e06891da6a4
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
* fix: remove pre-existing expectedFailure decorators from test_gettext plural form tests
Agent-Logs-Url: https://github.com/RustPython/RustPython/sessions/ce27bf53-569f-45a0-ad5a-08e8f322c717
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
* remove extra_tests/snippets/inspect_getsource.py (covered by test_inspect)
Agent-Logs-Url: https://github.com/RustPython/RustPython/sessions/2b64da1b-8aab-4fec-8b28-3a21d46ac2f9
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>inspect.getsource returning truncated source for multi-line function definitions (#7519)1 parent 90c5464 commit 902985d
File tree
3 files changed
+8
-9
lines changed- Lib/test
- test_inspect
- crates/codegen/src
3 files changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | 388 | | |
390 | 389 | | |
391 | 390 | | |
| |||
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
399 | | - | |
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
| |||
409 | 407 | | |
410 | 408 | | |
411 | 409 | | |
412 | | - | |
413 | 410 | | |
414 | 411 | | |
415 | 412 | | |
| |||
442 | 439 | | |
443 | 440 | | |
444 | 441 | | |
445 | | - | |
446 | 442 | | |
447 | 443 | | |
448 | 444 | | |
| |||
451 | 447 | | |
452 | 448 | | |
453 | 449 | | |
454 | | - | |
455 | 450 | | |
456 | 451 | | |
457 | 452 | | |
| |||
472 | 467 | | |
473 | 468 | | |
474 | 469 | | |
475 | | - | |
476 | 470 | | |
477 | 471 | | |
478 | 472 | | |
| |||
481 | 475 | | |
482 | 476 | | |
483 | 477 | | |
484 | | - | |
485 | 478 | | |
486 | 479 | | |
487 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
965 | 964 | | |
966 | 965 | | |
967 | 966 | | |
| |||
1259 | 1258 | | |
1260 | 1259 | | |
1261 | 1260 | | |
1262 | | - | |
1263 | 1261 | | |
1264 | 1262 | | |
1265 | 1263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4246 | 4246 | | |
4247 | 4247 | | |
4248 | 4248 | | |
| 4249 | + | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
4249 | 4253 | | |
4250 | 4254 | | |
4251 | 4255 | | |
4252 | 4256 | | |
4253 | 4257 | | |
| 4258 | + | |
| 4259 | + | |
| 4260 | + | |
| 4261 | + | |
4254 | 4262 | | |
4255 | 4263 | | |
4256 | 4264 | | |
| |||
0 commit comments