Home / Function/ suppress_langchain_deprecation_warning() — langchain Function Reference

suppress_langchain_deprecation_warning() — langchain Function Reference

Architecture documentation for the suppress_langchain_deprecation_warning() function in deprecation.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6e0cad06_b71c_2ad6_208c_f666f1fc8c89["suppress_langchain_deprecation_warning()"]
  94320bb6_6e56_d7f5_79eb_9674de780d72["deprecation.py"]
  6e0cad06_b71c_2ad6_208c_f666f1fc8c89 -->|defined in| 94320bb6_6e56_d7f5_79eb_9674de780d72
  style 6e0cad06_b71c_2ad6_208c_f666f1fc8c89 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/_api/deprecation.py lines 430–435

def suppress_langchain_deprecation_warning() -> Generator[None, None, None]:
    """Context manager to suppress `LangChainDeprecationWarning`."""
    with warnings.catch_warnings():
        warnings.simplefilter("ignore", LangChainDeprecationWarning)
        warnings.simplefilter("ignore", LangChainPendingDeprecationWarning)
        yield

Subdomains

Frequently Asked Questions

What does suppress_langchain_deprecation_warning() do?
suppress_langchain_deprecation_warning() is a function in the langchain codebase, defined in libs/core/langchain_core/_api/deprecation.py.
Where is suppress_langchain_deprecation_warning() defined?
suppress_langchain_deprecation_warning() is defined in libs/core/langchain_core/_api/deprecation.py at line 430.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free