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

Enforce mypy #16

Closed
wants to merge 3 commits into from
Closed

Enforce mypy #16

wants to merge 3 commits into from

Conversation

michaeldiamant
Copy link
Contributor

Enforces mypy throughout the repo making a best-effort attempt to remediate mypy errors.

The PR adds # type: ignore in several places as a workaround. In these cases, I was unable to remediate the mypy error in a way that preserved tests. I welcome feedback or alternative suggestions.

@michaeldiamant michaeldiamant marked this pull request as ready for review May 14, 2022 03:25
@tzaffi
Copy link
Contributor

tzaffi commented May 14, 2022

gonna try to merge this into the actual latest (#15)

will keep you posted

@tzaffi
Copy link
Contributor

tzaffi commented May 14, 2022

I believe this is closeable, as I've merged it into #17

image

Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

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

this has been merged into current lead commit

@tzaffi
Copy link
Contributor

tzaffi commented May 14, 2022

TODO: delete branch after #17 merged

@tzaffi tzaffi closed this May 14, 2022
@tzaffi tzaffi deleted the mypy_enablement branch May 17, 2022 13:08
tzaffi added a commit that referenced this pull request May 18, 2022
# `mypy`
Enabling mypy by incorporating #16 and making other similar changes to new code. This makes it possible for downstream dependencies that incorporate graviton to be mypy-compliant as well.

# Allow handling of Transaction Params in Logic Sig and App Dry-Runs
Previously, graviton was using the old Python SDK DryRunHelper which hard-coded the transaction information associated with a dry run. This made it impossible to write logic sigs that vallidated the transaction information in their program. This PR fixes this situation. In fact, the image below was only possible to create thanks to this new addition.

# Jupyter Notebooks
Introducing notebooks/quadratic_factoring_game.ipynb which shows how to leverage graviton for creating graphs in jupyter such as below. The notebook also runs during integration testing.
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.

None yet

2 participants