-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add closure variables into global scope #431
base: main
Are you sure you want to change the base?
Conversation
I think you're off to a good start, but this is failing the tests. Please try running the tests locally with e.g. |
I reproduced test fails and fixed it |
globalz = dict(func.__globals__) | ||
|
||
for cell in func.__closure__ or (): | ||
cell_contents = cell.cell_contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type of cell_contents
is Any
. So I'm NOT SURE here
Is it better to check if cell_contents
is type
instance?
What else may it be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I was right in this question
I don't see this test? Or a changelog note. |
98dc6dd
to
b4f038e
Compare
I just added two tests which fail. |
Fixes #430