[docs]classPythonCodeTextSplitter(RecursiveCharacterTextSplitter):"""Attempts to split the text along Python syntax."""
[docs]def__init__(self,**kwargs:Any)->None:"""Initialize a PythonCodeTextSplitter."""separators=self.get_separators_for_language(Language.PYTHON)super().__init__(separators=separators,**kwargs)