We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ast.Str
ast.Constant
1 parent bf754a6 commit 02102a9Copy full SHA for 02102a9
python/cog/command/call_graph.py
@@ -65,7 +65,7 @@ def visit_Call(self, node: ast.Call) -> None:
65
)
66
elif node.args:
67
arg = node.args[0]
68
- if isinstance(arg, ast.Str):
+ if isinstance(arg, ast.Constant) and isinstance(arg.value, str):
69
self.includes.append(arg.s)
70
else:
71
raise ValueError(
0 commit comments