Commit 10f8ce6
bpo-36280: Add Constant.kind field (pythonGH-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/issue362801 parent 8b5bdda commit 10f8ce6
6 files changed
Lines changed: 142 additions & 60 deletions
File tree
- Include
- Lib/test
- Misc/NEWS.d/next/Library
- Parser
- Python
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments