summaryrefslogtreecommitdiff
path: root/astroid/inference.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-12-15 11:17:06 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-12-15 11:17:06 +0200
commit73d276d0612599d4cded1431209560949256197a (patch)
tree8d65f365b58e2712cbfb40b665b708359c2123c0 /astroid/inference.py
parentd68f2935378ecce766c2ec9086c18e44d4b78572 (diff)
downloadastroid-git-73d276d0612599d4cded1431209560949256197a.tar.gz
Set arguments on inferred properties and property descriptors such as fget()
Diffstat (limited to 'astroid/inference.py')
-rw-r--r--astroid/inference.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/inference.py b/astroid/inference.py
index 64e79df7..bfd94b92 100644
--- a/astroid/inference.py
+++ b/astroid/inference.py
@@ -960,6 +960,7 @@ def infer_functiondef(self, context=None):
parent=self.parent,
col_offset=self.col_offset,
)
+ prop_func.postinit(body=[], args=self.args)
yield prop_func