From 88fd426e14c34cb5771fd6c06f5a1ba50bb03292 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Fri, 6 Mar 2020 09:54:45 +0100 Subject: Reverse super call with setting the function to allow string representation before setting locals --- astroid/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- cgit v1.2.1