Commit 835e1d26 authored by Stefan Behnel's avatar Stefan Behnel

fix 'self' typing bug for inlined __enter__() methods

parent 7445f6fc
......@@ -1166,7 +1166,7 @@ class WithTransform(CythonTransform, SkipDeclarations):
body, target, manager = node.body, node.target, node.manager
node.enter_call = ExprNodes.SimpleCallNode(
pos, function = ExprNodes.AttributeNode(
pos, obj = ResultRefNode(manager),
pos, obj = ExprNodes.CloneNode(manager),
attribute = EncodedString('__enter__')),
args = [],
is_temp = True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment