Skip to content

Commit 10f8ce6

Browse files
gvanrossummiss-islington
authored andcommitted
bpo-36280: Add Constant.kind field (GH-12295)
The value is a string for string and byte literals, None otherwise. It is 'u' for u"..." literals, 'b' for b"..." literals, '' for "..." literals. The 'r' (raw) prefix is ignored. Does not apply to f-strings. This appears sufficient to make mypy capable of using the stdlib ast module instead of typed_ast (assuming a mypy patch I'm working on). WIP: I need to make the tests pass. @ilevkivskyi @serhiy-storchaka https://bugs.python.org/issue36280
1 parent 8b5bdda commit 10f8ce6

File tree

6 files changed

+142
-60
lines changed

6 files changed

+142
-60
lines changed

Include/Python-ast.h

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)