We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cell.cell_contents
1 parent 65c40d3 commit 41c3e64Copy full SHA for 41c3e64
1 file changed
Lib/annotationlib.py
@@ -176,11 +176,13 @@ def evaluate(
176
# Similar logic can be used for nonlocals, which should not
177
# override locals.
178
if isinstance(self.__cell__, dict):
179
- for cell_name, cell_value in self.__cell__.items():
+ for cell_name, cell in self.__cell__.items():
180
try:
181
- locals.setdefault(cell_name, cell_value.cell_contents)
+ cell_value = cell.cell_contents
182
except ValueError:
183
pass
184
+ else:
185
+ locals.setdefault(cell_name, cell_value)
186
187
if self.__extra_names__:
188
locals.update(self.__extra_names__)
0 commit comments