Incorrect docstring for PythonCodeTextSplitter (#4296)

Fixes a copy-paste error in the doctring
This commit is contained in:
Eugene Brodsky 2023-05-07 17:04:54 -04:00 committed by GitHub
parent f70e18a5b3
commit a1001b29eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ",