diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2020-03-06 09:54:45 +0100 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-03-06 09:54:45 +0100 |
| commit | 88fd426e14c34cb5771fd6c06f5a1ba50bb03292 (patch) | |
| tree | e63a3fbe00d9e705303c2c9d14b72c010ddda5db | |
| parent | 0ef2a0cf7b87090c247d653abb014d9d7f5f564c (diff) | |
| download | astroid-git-88fd426e14c34cb5771fd6c06f5a1ba50bb03292.tar.gz | |
Reverse super call with setting the function to allow string representation before setting locals
| -rw-r--r-- | astroid/objects.py | 2 |
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()) |
