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 Python SDK #5769

Merged
merged 3 commits into from
Dec 4, 2022
Merged

Fix Python SDK #5769

merged 3 commits into from
Dec 4, 2022

Conversation

davidiw
Copy link
Contributor

@davidiw davidiw commented Dec 4, 2022

  • Found bugs in the last update to Python and fixed those
  • Finished up the process of bringing in mypy and flushing out good type checking

Tested with
make test && make examples

I'm not competent enough to figure out how to integrate with CI/CD

* Module deserialization was broken
* Generic struct deserialization was broken
* Improved typing for tests
* mypy is great but the previous individual didn't finish up the work
* you can't have a lint that will undoubtedly fail, we use two
  formatters and they overwrite each other... because of that, we need
  to use the formatter to detect bad linting or get rid of one of our formatters
* verified that the docs page still looks good
* updated the faucet for devnet back to the original one
run-python-examples:
runs-on: ubuntu-latest
env:
APTOS_NODE_URL: https://fullnode.devnet.aptoslabs.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize the Python SDK was smart enough to add the /v1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you added that...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol okay go me

@@ -250,7 +252,7 @@ def transfer(self, sender: Account, recipient: AccountAddress, amount: int) -> s
}
return self.submit_transaction(sender, payload)

#:!:>bcs_transfer
# :!:>bcs_transfer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think black does this but it breaks the templating into the tutorials, have we double checked that? I think that's why I wasn't using black on the aptos_sdk files in the first place.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it worked :)

@davidiw davidiw merged commit 3973311 into aptos-labs:main Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants