Skip to content

Commit

Permalink
core[patch]: Remove default BaseModel init docstring (langchain-ai#25009
Browse files Browse the repository at this point in the history
)

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)
  • Loading branch information
baskaryan authored and olgamurraft committed Aug 16, 2024
1 parent dd65cb1 commit 3687b57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/core/langchain_core/load/serializable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 3687b57

Please sign in to comment.