mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
Lint
This commit is contained in:
parent
4ba9c16f74
commit
151f27d502
@ -92,6 +92,7 @@ class GetLambdaSource(ast.NodeVisitor):
|
|||||||
self.source: Optional[str] = None
|
self.source: Optional[str] = None
|
||||||
|
|
||||||
def visit_Lambda(self, node: ast.Lambda) -> Any:
|
def visit_Lambda(self, node: ast.Lambda) -> Any:
|
||||||
|
if hasattr(ast, "unparse"):
|
||||||
self.source = ast.unparse(node)
|
self.source = ast.unparse(node)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user