Skip to content

The agent engineering platform.

Incorrect docstring for PythonCodeTextSplitter (#4296)

Eugene Brodskya1001b29eba6
diff --git a/langchain/text_splitter.py b/langchain/text_splitter.py
index 7afd8b25d1..1a09bf0542 100644
--- a/langchain/text_splitter.py
+++ b/langchain/text_splitter.py
@@ -412,7 +412,7 @@ class PythonCodeTextSplitter(RecursiveCharacterTextSplitter):
"""Attempts to split the text along Python syntax."""
def __init__(self, **kwargs: Any):
- """Initialize a MarkdownTextSplitter."""
+ """Initialize a PythonCodeTextSplitter."""
separators = [
# First, try to split along class definitions
"\nclass ",