fix: use tuple syntax for isinstance check (Python 3.9 compat)
This commit is contained in:
parent
8a07c5e263
commit
f180c3f854
1 changed files with 1 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ def _has_aliased_future_imports(module: cst.Module) -> bool:
|
|||
if (
|
||||
isinstance(s, cst.ImportFrom)
|
||||
and s.module is not None
|
||||
and isinstance(s.module, cst.Attribute | cst.Name)
|
||||
and isinstance(s.module, (cst.Attribute, cst.Name))
|
||||
and hasattr(s.module, "value")
|
||||
and s.module.value == "__future__"
|
||||
and isinstance(s.names, (list, tuple))
|
||||
|
|
|
|||
Loading…
Reference in a new issue