-
Notifications
You must be signed in to change notification settings - Fork 132
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
Move to pyteal as pt in ABI tests #285
Move to pyteal as pt in ABI tests #285
Conversation
Co-authored-by: Zeph Grunschlag <[email protected]>
options = pt.CompileOptions(version=5) | ||
|
||
STATIC_TYPES: List[pt.abi.TypeSpec] = [ | ||
pt.abi.BoolTypeSpec(), |
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.
👍
pt.abi...
caught me by surprise, but is certainly in the spirit of incoming CONTRIBUTING.md
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.
nit: I'd probably recommend something like this:
import pyteal as pt
from pyteal import abi
I don't mind the two imports in this case, and since it would require fewer changes in this PR, I have a preference for it, but this is not a blocker to me.
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.
LGTM
options = pt.CompileOptions(version=5) | ||
|
||
STATIC_TYPES: List[pt.abi.TypeSpec] = [ | ||
pt.abi.BoolTypeSpec(), |
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.
nit: I'd probably recommend something like this:
import pyteal as pt
from pyteal import abi
I don't mind the two imports in this case, and since it would require fewer changes in this PR, I have a preference for it, but this is not a blocker to me.
…algorand/pyteal into feature/abi-merge_master-remove_ignores
Closing - We opted for the approach in #286. |
Follows #284 to remove temporary flake8 ignores.
Except for
method_return_test.py
, all changes made mechanically viapyteal-as-pt.txt. Rename to
.sh
after downloading because Github allows limited upload formats.