mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-09 06:24:47 +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
|
self.source: Optional[str] = None
|
||||||
|
|
||||||
def visit_Lambda(self, node: ast.Lambda) -> Any:
|
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]]:
|
def get_function_first_arg_dict_keys(func: Callable) -> Optional[List[str]]:
|
||||||
|
Loading…
Reference in New Issue
Block a user