diff options
author | Jared Garst <jgarst@users.noreply.github.com> | 2016-10-24 09:18:01 -0700 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-10-24 11:18:01 -0500 |
commit | 462af82a642c437fd113b3be487c28bb435f3ac8 (patch) | |
tree | 0a59a7ed23e59bed724309140b78209d3f50bb9d /astroid/nodes.py | |
parent | 9979615030d97cbe26bb64e005f7dd83012f013d (diff) | |
download | astroid-git-462af82a642c437fd113b3be487c28bb435f3ac8.tar.gz |
add format string support (#365)
Format strings require support for two new nodes, FormattedValue, respectively JoinedStr.
Diffstat (limited to 'astroid/nodes.py')
-rw-r--r-- | astroid/nodes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/astroid/nodes.py b/astroid/nodes.py index 1c279ccf..3397294b 100644 --- a/astroid/nodes.py +++ b/astroid/nodes.py @@ -37,6 +37,7 @@ from astroid.node_classes import ( TryExcept, TryFinally, Tuple, UnaryOp, While, With, Yield, YieldFrom, const_factory, AsyncFor, Await, AsyncWith, + FormattedValue, JoinedStr, # Backwards-compatibility aliases Backquote, Discard, AssName, AssAttr, Getattr, CallFunc, From, # Node not present in the builtin ast module. @@ -75,4 +76,5 @@ ALL_NODE_CLASSES = ( UnaryOp, While, With, Yield, YieldFrom, + FormattedValue, JoinedStr, ) |