LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Graphs
  • Functional API
  • Pregel
  • Checkpointing
  • Storage
  • Caching
  • Types
  • Runtime
  • Config
  • Errors
  • Constants
  • Channels
  • Agents
LangGraph CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
LangGraph CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
Language
Theme
Pythonlanggraphpregel_utilsFunctionNonLocals
Class●Since v0.6

FunctionNonLocals

Copy
FunctionNonLocals(
    self,
)

Bases

ast.NodeVisitor

Constructors

Attributes

Methods

View source on GitHub
constructor
__init__
attribute
nonlocals: set[str]
method
visit_FunctionDef
method
visit_AsyncFunctionDef
method
visit_Lambda

Get the nonlocal variables accessed of a function.

Visit a function definition.

Visit an async function definition.

Visit a lambda function.