From 6eb42c657ec2696326f4c5c2269e33aa02dc8cbe Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Mon, 5 Aug 2024 18:04:04 -0700 Subject: [PATCH] core[patch]: Remove default BaseModel init docstring (#25009) Currently a default init docstring gets appended to the class docstring of every BaseModel inherited object. This removes the default init docstring. ![Screenshot 2024-08-02 at 5 09 55 PM](https://github.com/user-attachments/assets/757fe4ae-a793-4e7d-8354-512de2c06818) --- libs/core/langchain_core/load/serializable.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/core/langchain_core/load/serializable.py b/libs/core/langchain_core/load/serializable.py index 0035a604ca499..cf00cad514ef8 100644 --- a/libs/core/langchain_core/load/serializable.py +++ b/libs/core/langchain_core/load/serializable.py @@ -107,6 +107,11 @@ class Serializable(BaseModel, ABC): as part of the serialized representation. """ + # Remove default BaseModel init docstring. + def __init__(self, *args: Any, **kwargs: Any) -> None: + """""" + super().__init__(*args, **kwargs) + @classmethod def is_lc_serializable(cls) -> bool: """Is this class serializable?