Author BTaskaya
Recipients BTaskaya, gvanrossum, lys.nikolaou
Date 2020-12-23.20:41:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is another side effect of processing annotations (at the symbol table construction stage) (and I would assume there are a few more cases like this);

def foo():
    outer_var = 1

    def bar():
        inner_var: outer_var = T
    return bar

inner = foo()

In theory, there shouldn't be any cells / references to the variables from outer scope, but since we process the entry for the annotation and record `outer_var` as a free var it is listed here.
Date User Action Args
2020-12-23 20:41:34BTaskayasetrecipients: + BTaskaya, gvanrossum, lys.nikolaou
2020-12-23 20:41:34BTaskayasetmessageid: <>
2020-12-23 20:41:34BTaskayalinkissue42725 messages
2020-12-23 20:41:34BTaskayacreate