Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Qmatrix/TupleOfTuple var access error #63

Closed
dakk opened this issue Jul 6, 2024 · 0 comments · Fixed by #64
Closed

Fix Qmatrix/TupleOfTuple var access error #63

dakk opened this issue Jul 6, 2024 · 0 comments · Fixed by #64
Labels
bug Something isn't working python ast Support for Python AST

Comments

@dakk
Copy link
Owner

dakk commented Jul 6, 2024

This raises Not a tuple in ast2ast visit subscript with not constant _sval: Subscript (value=Name(id='a', ctx=Load()), slice=Name(id='i', ctx=Load()), ctx=Load())

@qlassf
def test(a: Qmatrix[Qint[2], 2, 2]) -> Qint[2]:
   i = 1
   j = i + 1
   return a[i][i]
@dakk dakk added bug Something isn't working python ast Support for Python AST labels Jul 6, 2024
@dakk dakk changed the title Fix Qmatrix access error Fix Qmatrix/TupleOfTuple var access error Jul 6, 2024
@dakk dakk linked a pull request Jul 6, 2024 that will close this issue
@dakk dakk closed this as completed in #64 Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python ast Support for Python AST
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant