summaryrefslogtreecommitdiff
path: root/astroid/objects.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-03-06 09:54:45 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2020-03-06 09:54:45 +0100
commit88fd426e14c34cb5771fd6c06f5a1ba50bb03292 (patch)
treee63a3fbe00d9e705303c2c9d14b72c010ddda5db /astroid/objects.py
parent0ef2a0cf7b87090c247d653abb014d9d7f5f564c (diff)
downloadastroid-git-88fd426e14c34cb5771fd6c06f5a1ba50bb03292.tar.gz
Reverse super call with setting the function to allow string representation before setting locals
Diffstat (limited to 'astroid/objects.py')
-rw-r--r--astroid/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/objects.py b/astroid/objects.py
index 93c5f406..50c4fb73 100644
--- a/astroid/objects.py
+++ b/astroid/objects.py
@@ -291,8 +291,8 @@ class Property(scoped_nodes.FunctionDef):
def __init__(
self, function, name=None, doc=None, lineno=None, col_offset=None, parent=None
):
- super().__init__(name, doc, lineno, col_offset, parent)
self.function = function
+ super().__init__(name, doc, lineno, col_offset, parent)
# pylint: disable=unnecessary-lambda
special_attributes = util.lazy_descriptor(lambda: objectmodel.PropertyModel())