From a1001b29eba6a93370088f7654171be1deaad4ca Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Sun, 7 May 2023 17:04:54 -0400 Subject: [PATCH] Incorrect docstring for PythonCodeTextSplitter (#4296) Fixes a copy-paste error in the doctring --- langchain/text_splitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/text_splitter.py b/langchain/text_splitter.py index 7afd8b25..1a09bf05 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 ",