Commit 3964846
committed
Address review comments in catalog, frontend and pofile
- catalog: use _key_for(id, context) in add_conflict/get_conflicts to
correctly handle messages with msgctxt; add docstrings to both methods
- frontend: tighten type hints (Counter[_MessageID], dict[_MessageID, ...]);
remove redundant early-return guard in _get_messages_from_compendiums;
initialize self.compendium as empty list
- pofile: replace .startswith() calls with slice comparisons for consistency1 parent 97f1e08 commit 3964846
3 files changed
Lines changed: 31 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
794 | | - | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
795 | 806 | | |
796 | 807 | | |
797 | 808 | | |
798 | 809 | | |
799 | 810 | | |
800 | 811 | | |
801 | 812 | | |
802 | | - | |
803 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
804 | 822 | | |
805 | 823 | | |
806 | 824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
960 | 963 | | |
961 | 964 | | |
962 | 965 | | |
963 | | - | |
964 | | - | |
| 966 | + | |
| 967 | + | |
965 | 968 | | |
966 | 969 | | |
967 | 970 | | |
| |||
1095 | 1098 | | |
1096 | 1099 | | |
1097 | 1100 | | |
1098 | | - | |
1099 | | - | |
1100 | 1101 | | |
1101 | 1102 | | |
1102 | 1103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
| 354 | + | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
0 commit comments