Skip to content

Commit 2fbdd8e

Browse files
committed
Fix type checking.
1 parent cddafe4 commit 2fbdd8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

agentstack/frameworks/langgraph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ class LangGraphFile(asttools.File):
6868
"""
6969
Parses and manipulates the LangGraph entrypoint file.
7070
"""
71-
def get_import(self, module_name: str, attributes: str) -> Optional[ast.Import]:
71+
def get_import(self, module_name: str, attributes: str) -> Optional[ast.ImportFrom]:
7272
"""
7373
Check if an import statement for a module and class exists in the file.
7474
"""
7575
for node in asttools.get_all_imports(self.tree):
7676
names = node.names[0]
77-
if names.asname == attributes and names.name == class_name:
77+
if names.asname == attributes and names.name == module_name:
7878
return node
7979
return None
8080

0 commit comments

Comments
 (0)