MCPcopy
hub / github.com/google-deepmind/penzai / apply

Method apply

penzai/core/selectors.py:264–271  ·  view source on GitHub ↗
(
      self,
      fn: Callable[[SelectedSubtree], Any],
      *,
      keep_selected: Literal[False] = False,
      with_keypath: Literal[False] = False,
  )

Source from the content-addressed store, hash-verified

262
263 @typing.overload
264 def apply(
265 self,
266 fn: Callable[[SelectedSubtree], Any],
267 *,
268 keep_selected: Literal[False] = False,
269 with_keypath: Literal[False] = False,
270 ) -> Any:
271 ...
272
273 @typing.overload
274 def apply(

Callers 15

setMethod · 0.95
set_by_pathMethod · 0.95
refineMethod · 0.95
atMethod · 0.95
at_pytree_leavesMethod · 0.95
at_childrenMethod · 0.95
whereMethod · 0.95
at_subtrees_whereMethod · 0.95
process_subselectionMethod · 0.45
freeze_variablesFunction · 0.45

Calls 2

deselectMethod · 0.95
SelectionClass · 0.85