mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-22 11:00:37 +00:00
experimental: docstrings update (#18048)
Added missed docstrings. Formatted docsctrings to the consistent format.
This commit is contained in:
@@ -12,8 +12,8 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
class BashProcess:
|
||||
"""
|
||||
Wrapper class for starting subprocesses.
|
||||
"""Wrapper for starting subprocesses.
|
||||
|
||||
Uses the python built-in subprocesses.run()
|
||||
Persistent processes are **not** available
|
||||
on Windows systems, as pexpect makes use of
|
||||
|
@@ -31,6 +31,8 @@ class BashOutputParser(BaseOutputParser):
|
||||
"""Parser for bash output."""
|
||||
|
||||
def parse(self, text: str) -> List[str]:
|
||||
"""Parse the output of a bash command."""
|
||||
|
||||
if "```bash" in text:
|
||||
return self.get_code_blocks(text)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user