File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -681,7 +681,8 @@ def visualize(
681681 stacks .append (stack_summaries )
682682 # add current stack info
683683 # go back one in the stack to the caller of 'visualize'
684- frame = inspect .currentframe ().f_back
684+ frame = inspect .currentframe ()
685+ frame = frame .f_back if frame is not None else frame
685686 stack_summaries = extract_stack_summaries (frame , limit = 10 )
686687 stacks .append (stack_summaries )
687688 array_display_names = extract_array_names_from_stack_summaries (stacks )
Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ class PlanWidget(anywidget.AnyWidget):
4242 selected_node = traitlets .Unicode ().tag (sync = True )
4343 _summary_html = traitlets .Unicode ().tag (sync = True )
4444 _node_html_dict = traitlets .Dict ({}).tag (sync = True )
45- _cytoscape_elements = traitlets .List ([]).tag (sync = True )
45+ _cytoscape_elements = traitlets .List ([]).tag (sync = True ) # type: ignore[var-annotated]
4646 _cytoscape_layout = traitlets .Dict ({}).tag (sync = True )
47- _cytoscape_style = traitlets .List ([]).tag (sync = True )
47+ _cytoscape_style = traitlets .List ([]).tag (sync = True ) # type: ignore[var-annotated]
4848 _cytoscape_options = traitlets .Dict ({}).tag (sync = True )
4949
5050
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ allow_redefinition = True
99ignore_errors = True
1010
1111# Most of the numerical computing stack doesn't have type annotations yet.
12+ [mypy-anywidget.*]
13+ ignore_missing_imports = True
1214[mypy-apache_beam.*]
1315ignore_missing_imports = True
1416[mypy-aiostream.*]
@@ -31,10 +33,12 @@ ignore_missing_imports = True
3133ignore_missing_imports = True
3234[mypy-icechunk.*]
3335ignore_missing_imports = True
34- [mypy-lithops .*]
36+ [mypy-ipywidgets .*]
3537ignore_missing_imports = True
3638[mypy-IPython.*]
3739ignore_missing_imports = True
40+ [mypy-lithops.*]
41+ ignore_missing_imports = True
3842[mypy-memray.*]
3943ignore_missing_imports = True
4044[mypy-modal.*]
You can’t perform that action at this time.
0 commit comments