summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-03-06 09:22:23 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2020-03-06 09:22:23 +0100
commitaaef3665b6dfbd7f46f2dac905d1c2efb3db3f97 (patch)
tree89d6b1bf4697cfb7b628d8521faf40861caddcc3 /astroid
parent555085e0bd850c5381e29d15294cd37287f79bd6 (diff)
downloadastroid-git-aaef3665b6dfbd7f46f2dac905d1c2efb3db3f97.tar.gz
Add support for converting Property objects to strings
Diffstat (limited to 'astroid')
-rw-r--r--astroid/as_string.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/astroid/as_string.py b/astroid/as_string.py
index 57049141..6b20f46c 100644
--- a/astroid/as_string.py
+++ b/astroid/as_string.py
@@ -544,6 +544,9 @@ class AsStringVisitor:
def visit_uninferable(self, node):
return str(node)
+ def visit_property(self, node):
+ return node.function.accept(self)
+
class AsStringVisitor3(AsStringVisitor):
"""AsStringVisitor3 overwrites some AsStringVisitor methods"""