mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-08 14:05:16 +00:00
Lint
This commit is contained in:
parent
4ba9c16f74
commit
151f27d502
@ -92,7 +92,8 @@ class GetLambdaSource(ast.NodeVisitor):
|
||||
self.source: Optional[str] = None
|
||||
|
||||
def visit_Lambda(self, node: ast.Lambda) -> Any:
|
||||
self.source = ast.unparse(node)
|
||||
if hasattr(ast, "unparse"):
|
||||
self.source = ast.unparse(node)
|
||||
|
||||
|
||||
def get_function_first_arg_dict_keys(func: Callable) -> Optional[List[str]]:
|
||||
|
Loading…
Reference in New Issue
Block a user