Toggle Menu
Prev Up Next

# `langchain_core.runnables.utils`.FunctionNonLocals

class langchain_core.runnables.utils.FunctionNonLocals

  Get the nonlocal variables accessed of a function.

  Methods

  `__init__`() |
  `generic_visit`(node) | Called if no explicit visitor function exists for a node.
  `visit`(node) | Visit a node.
  `visit_AsyncFunctionDef`(node) |
  `visit_Constant`(node) |
  `visit_FunctionDef`(node) |
  `visit_Lambda`(node) |

  __init__() → None
    Return type

      None

  generic_visit(node)

    Called if no explicit visitor function exists for a node.

  visit(node)

    Visit a node.

  visit_AsyncFunctionDef(node: AsyncFunctionDef) → Any
    Parameters

      node (AsyncFunctionDef) –

    Return type

      Any

  visit_Constant(node)
  visit_FunctionDef(node: FunctionDef) → Any
    Parameters

      node (FunctionDef) –

    Return type

      Any

  visit_Lambda(node: Lambda) → Any
    Parameters

      node (Lambda) –

    Return type

      Any