We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a07c5e commit f180c3fCopy full SHA for f180c3f
1 file changed
codeflash/languages/python/static_analysis/code_extractor.py
@@ -433,7 +433,7 @@ def _has_aliased_future_imports(module: cst.Module) -> bool:
433
if (
434
isinstance(s, cst.ImportFrom)
435
and s.module is not None
436
- and isinstance(s.module, cst.Attribute | cst.Name)
+ and isinstance(s.module, (cst.Attribute, cst.Name))
437
and hasattr(s.module, "value")
438
and s.module.value == "__future__"
439
and isinstance(s.names, (list, tuple))
0 commit comments