ClassWithDeprecatedMethods Class — langchain Architecture
Architecture documentation for the ClassWithDeprecatedMethods class in test_deprecation.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD cac44e82_6462_fc68_b6e8_27ed82717fb3["ClassWithDeprecatedMethods"] 07400ddb_6f57_2ca9_d2d9_e7c7fd98cfc1["test_deprecation.py"] cac44e82_6462_fc68_b6e8_27ed82717fb3 -->|defined in| 07400ddb_6f57_2ca9_d2d9_e7c7fd98cfc1 2974f07b_cc81_4f03_2419_091a2c4e61ca["__init__()"] cac44e82_6462_fc68_b6e8_27ed82717fb3 -->|method| 2974f07b_cc81_4f03_2419_091a2c4e61ca b076f2d0_d292_f547_2081_ee248d4e87a9["deprecated_method()"] cac44e82_6462_fc68_b6e8_27ed82717fb3 -->|method| b076f2d0_d292_f547_2081_ee248d4e87a9 884a0e2d_c0a2_96e9_b976_2ca53aa59c82["deprecated_async_method()"] cac44e82_6462_fc68_b6e8_27ed82717fb3 -->|method| 884a0e2d_c0a2_96e9_b976_2ca53aa59c82 91d747d2_96d5_e607_9599_0f360d444e03["deprecated_classmethod()"] cac44e82_6462_fc68_b6e8_27ed82717fb3 -->|method| 91d747d2_96d5_e607_9599_0f360d444e03 be2840dd_463d_aef7_0f09_4ae4c880ca48["deprecated_staticmethod()"] cac44e82_6462_fc68_b6e8_27ed82717fb3 -->|method| be2840dd_463d_aef7_0f09_4ae4c880ca48 8c7e5750_3f95_e25f_17e0_5b8e29b53755["deprecated_property()"] cac44e82_6462_fc68_b6e8_27ed82717fb3 -->|method| 8c7e5750_3f95_e25f_17e0_5b8e29b53755
Relationship Graph
Source Code
libs/core/tests/unit_tests/_api/test_deprecation.py lines 88–118
class ClassWithDeprecatedMethods:
def __init__(self) -> None:
"""Original doc."""
@deprecated(since="2.0.0", removal="3.0.0")
def deprecated_method(self) -> str:
"""Original doc."""
return "This is a deprecated method."
@deprecated(since="2.0.0", removal="3.0.0")
async def deprecated_async_method(self) -> str:
"""Original doc."""
return "This is a deprecated async method."
@classmethod
@deprecated(since="2.0.0", removal="3.0.0")
def deprecated_classmethod(cls) -> str:
"""Original doc."""
return "This is a deprecated classmethod."
@staticmethod
@deprecated(since="2.0.0", removal="3.0.0")
def deprecated_staticmethod() -> str:
"""Original doc."""
return "This is a deprecated staticmethod."
@property
@deprecated(since="2.0.0", removal="3.0.0")
def deprecated_property(self) -> str:
"""Original doc."""
return "This is a deprecated property."
Source
Frequently Asked Questions
What is the ClassWithDeprecatedMethods class?
ClassWithDeprecatedMethods is a class in the langchain codebase, defined in libs/core/tests/unit_tests/_api/test_deprecation.py.
Where is ClassWithDeprecatedMethods defined?
ClassWithDeprecatedMethods is defined in libs/core/tests/unit_tests/_api/test_deprecation.py at line 88.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free