summaryrefslogtreecommitdiff
path: root/astroid/nodes.py
diff options
context:
space:
mode:
authorJared Garst <jgarst@users.noreply.github.com>2016-10-24 09:18:01 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2016-10-24 11:18:01 -0500
commit462af82a642c437fd113b3be487c28bb435f3ac8 (patch)
tree0a59a7ed23e59bed724309140b78209d3f50bb9d /astroid/nodes.py
parent9979615030d97cbe26bb64e005f7dd83012f013d (diff)
downloadastroid-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.py2
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,
)