mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 15:04:13 +00:00
patch[Community] Optimize methods in several ChatLoaders (#24806)
There are some static methods in ChatLoaders, try to add @staticmethod decorator for them.
This commit is contained in:
@@ -86,7 +86,8 @@ class WhatsAppChatLoader(BaseChatLoader):
|
||||
logger.debug(f"Could not parse line: {line}")
|
||||
return ChatSession(messages=results)
|
||||
|
||||
def _iterate_files(self, path: str) -> Iterator[str]:
|
||||
@staticmethod
|
||||
def _iterate_files(path: str) -> Iterator[str]:
|
||||
"""Iterate over the files in a directory or zip file.
|
||||
|
||||
Args:
|
||||
|
Reference in New Issue
Block a user