Commit 6d9dc7f
Improve error message for assignments to final variables (#1923)
Summary:
- Unify two different error messages depending on call sites
- Add backticks around variable names
Pull Request resolved: #1923
Test Plan: `python test.py`
Reviewed By: yangdanny97
Differential Revision: D89740922
Pulled By: grievejia
fbshipit-source-id: 428db5dc654961de068fd78819f1da28dbe39d061 parent 562abca commit 6d9dc7f
File tree
5 files changed
+31
-13
lines changed- conformance/third_party
- pyrefly/lib
- alt
- binding
- test
5 files changed
+31
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9590 | 9590 | | |
9591 | 9591 | | |
9592 | 9592 | | |
9593 | | - | |
9594 | | - | |
| 9593 | + | |
| 9594 | + | |
9595 | 9595 | | |
9596 | 9596 | | |
9597 | 9597 | | |
| |||
9601 | 9601 | | |
9602 | 9602 | | |
9603 | 9603 | | |
9604 | | - | |
9605 | | - | |
| 9604 | + | |
| 9605 | + | |
9606 | 9606 | | |
9607 | 9607 | | |
9608 | 9608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2799 | 2799 | | |
2800 | 2800 | | |
2801 | 2801 | | |
2802 | | - | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
2803 | 2806 | | |
2804 | 2807 | | |
2805 | 2808 | | |
| |||
2836 | 2839 | | |
2837 | 2840 | | |
2838 | 2841 | | |
2839 | | - | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
2840 | 2846 | | |
2841 | 2847 | | |
2842 | 2848 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1893 | 1893 | | |
1894 | 1894 | | |
1895 | 1895 | | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
1902 | 1902 | | |
1903 | 1903 | | |
1904 | 1904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
375 | 387 | | |
376 | 388 | | |
377 | 389 | | |
| |||
0 commit comments