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 typos in pyteal/ast/abi/util.py #467

Merged
merged 2 commits into from
Jul 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions pyteal/ast/abi/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ def type_spec_from_annotation(annotation: Any) -> TypeSpec:

if origin is Asset:
if len(args) != 0:
raise TypeError("Asset expects 0 argsuments. Got: {}".format(args))
raise TypeError("Asset expects 0 arguments. Got: {}".format(args))
return AssetTypeSpec()

if origin is Application:
if len(args) != 0:
raise TypeError("Application expects 0 argsuments. Got: {}".format(args))
raise TypeError("Application expects 0 arguments. Got: {}".format(args))
return ApplicationTypeSpec()

if origin is Bool:
Expand Down Expand Up @@ -257,52 +257,48 @@ def type_spec_from_annotation(annotation: Any) -> TypeSpec:

if origin is Transaction:
if len(args) != 0:
raise TypeError(
"Transaction expects 0 type arguements. Got {}".format(args)
)
raise TypeError("Transaction expects 0 type arguments. Got {}".format(args))
return TransactionTypeSpec()

if origin is PaymentTransaction:
if len(args) != 0:
raise TypeError(
"PaymentTransaction expects 0 type arguements. Got {}".format(args)
"PaymentTransaction expects 0 type arguments. Got {}".format(args)
)
return PaymentTransactionTypeSpec()

if origin is KeyRegisterTransaction:
if len(args) != 0:
raise TypeError(
"KeyRegisterTransaction expects 0 type arguements. Got {}".format(args)
"KeyRegisterTransaction expects 0 type arguments. Got {}".format(args)
)
return KeyRegisterTransactionTypeSpec()

if origin is AssetConfigTransaction:
if len(args) != 0:
raise TypeError(
"AssetConfigTransaction expects 0 type arguements. Got {}".format(args)
"AssetConfigTransaction expects 0 type arguments. Got {}".format(args)
)
return AssetConfigTransactionTypeSpec()

if origin is AssetFreezeTransaction:
if len(args) != 0:
raise TypeError(
"AssetFreezeTransaction expects 0 type arguements. Got {}".format(args)
"AssetFreezeTransaction expects 0 type arguments. Got {}".format(args)
)
return AssetFreezeTransactionTypeSpec()

if origin is AssetTransferTransaction:
if len(args) != 0:
raise TypeError(
"AssetTransferTransaction expects 0 type arguements. Got {}".format(
args
)
"AssetTransferTransaction expects 0 type arguments. Got {}".format(args)
)
return AssetTransferTransactionTypeSpec()

if origin is ApplicationCallTransaction:
if len(args) != 0:
raise TypeError(
"ApplicationCallTransaction expects 0 type arguements. Got {}".format(
"ApplicationCallTransaction expects 0 type arguments. Got {}".format(
args
)
)
Expand Down