Commit 08f6bbb
Drop unreachable defensive branches from _natural_simpler_chars
The pass only calls this helper for characters that come from a string
choice node's value (so always single-char and always in the alphabet),
and unicodedata.normalize never returns an empty string for non-empty
input - so the length / empty-decomposition guards and the two
ValueError fallbacks were dead code keeping coverage from reaching 100%.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4082379 commit 08f6bbb
1 file changed
Lines changed: 10 additions & 26 deletions
Lines changed: 10 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
101 | 102 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 103 | + | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 107 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
131 | 115 | | |
132 | 116 | | |
133 | 117 | | |
| |||
0 commit comments