This repository was archived by the owner on Jul 5, 2023. It is now read-only.
File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 19
19
called with `mode=func_type`.
20
20
- `Module` has a `type_ignores` field which contains a list of
21
21
lines which have been `# type: ignore`d.
22
- - `Str` has a `has_b` boolean field which indicates if the string is
23
- explicitly prefixed with a `b`. (This is deprecated and may be removed in
24
- future versions.)
22
+ - `Str` has a `kind` string field which preserves the original string
23
+ prefix, so that `ast27.parse('br"test"').body[0].value.kind == 'br'`.
25
24
26
25
An abstract syntax tree can be generated by using the `parse()`
27
26
function from this module. The result will be a tree of objects whose
Original file line number Diff line number Diff line change 21
21
newer Python syntax features.
22
22
- `Module` has a `type_ignores` field which contains a list of
23
23
lines which have been `# type: ignore`d.
24
+ - `Str` has a `kind` string field which preserves the original string
25
+ prefix, so that `ast3.parse('u"test"').body[0].value.kind == 'u'`.
24
26
25
27
An abstract syntax tree can be generated by using the `parse()`
26
28
function from this module. The result will be a tree of objects whose
You can’t perform that action at this time.
0 commit comments