Skip to content

Commit

Permalink
make sure to use fully resolved attrsubs in dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed Apr 10, 2023
1 parent 39663a0 commit 1b0ff70
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/ipyflow/tracing/ipyflow_tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,14 @@ def attrsub_tracer(
)
except TypeError:
data_sym = None
self.pending_usage_updates_by_sym[
sym_for_obj
] = self.pending_usage_updates_by_sym.get(sym_for_obj, True) and (
data_sym is not None
self.pending_usage_updates_by_sym.setdefault(
sym_for_obj, data_sym is not None
)
if data_sym is not None and event in (
pyc.before_attribute_load,
pyc.before_subscript_load,
):
self.pending_usage_updates_by_sym.setdefault(data_sym, True)

obj_id = id(obj)
if self.top_level_node_id_for_chain is None:
Expand Down

0 comments on commit 1b0ff70

Please sign in to comment.