Commit 9dbce34
authored
Stricter AST checks (#2557)
* Normalize docstrings using the extended AST
This use the extended AST normalization for docstrings within the std
AST. This ensures that repl phrases are handled correctly and removes
some code.
* Stricter AST checks
The AST check was previously trigerring if both the std AST and the
extended AST were different.
The std AST is intended to be the most trustworthy and is intended to
catch changes in the code that the extended AST couldn't.1 parent ca77ba9 commit 9dbce34
File tree
4 files changed
+16
-53
lines changed- lib
4 files changed
+16
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
177 | 181 | | |
178 | 182 | | |
179 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
64 | 25 | | |
65 | 26 | | |
66 | 27 | | |
| |||
83 | 44 | | |
84 | 45 | | |
85 | 46 | | |
86 | | - | |
| 47 | + | |
87 | 48 | | |
88 | 49 | | |
89 | 50 | | |
| |||
239 | 200 | | |
240 | 201 | | |
241 | 202 | | |
242 | | - | |
243 | | - | |
| 203 | + | |
244 | 204 | | |
245 | 205 | | |
246 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
332 | 328 | | |
333 | 329 | | |
334 | 330 | | |
| |||
0 commit comments