From c5fc717482176ac1b8511157076796e5417b8cb1 Mon Sep 17 00:00:00 2001 From: "Davide Gessa (dakk)" Date: Mon, 30 Oct 2023 09:21:11 +0100 Subject: [PATCH] fix mypy --- qlasskit/ast2logic/t_expression.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qlasskit/ast2logic/t_expression.py b/qlasskit/ast2logic/t_expression.py index 81eca6f7..e2e1383e 100644 --- a/qlasskit/ast2logic/t_expression.py +++ b/qlasskit/ast2logic/t_expression.py @@ -53,9 +53,9 @@ def translate_expression(expr, env: Env) -> TExp: # noqa: C901 def unroll_subscripts(sub, st): if sys.version_info < (3, 9): - _sval = sub.slice.value + _sval = sub.slice.value # type: ignore else: - _sval = sub.slice + _sval = sub.slice # type: ignore if isinstance(sub.value, ast.Subscript): st = f"{_sval.value}{'.' if st else ''}{st}" @@ -67,9 +67,9 @@ def unroll_subscripts(sub, st): raise exceptions.ExpressionNotHandledException(expr) if sys.version_info < (3, 9): - _sval = expr.slice.value + _sval = expr.slice.value # type: ignore else: - _sval = expr.slice + _sval = expr.slice # type: ignore if not isinstance(_sval, ast.Constant): raise exceptions.ExpressionNotHandledException(expr)