-
Notifications
You must be signed in to change notification settings - Fork 2
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
166 type hinting #173
166 type hinting #173
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, Stan!
Just a comment: maybe better to use List
and Tuple
from typing
? Than list
and tuple
.
I've got errors with Python 3.8 this afternoon because of using list
.
I specifically used This indeed is not immediately compatible with python3.8. However, in 99% of the cases this can be solved by adding |
Oh wow, good catch. I am gonna file the replacement of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, @S-Linde.
I have only seen that merging error with libqasm_ir_creator.py
.
However, according to one error I've just seen in the logs, make sure there are no references to squirrel_ir
throughout the code as well. squirrel_ir
has been renamed to ir
now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Stan,
Is this ready to go?
I don't know why I still see refrences to squirrel_ir
, and a parser/libqasm/libqasm_ir_creator.py
file in the Files changed
section.
Thanks!
It's almost ready. I'm trying to add a github action for |
Done |
This pull request contains:
int | str
instead ofUnion[int, str]
)closes #166 and #199