-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/pydantic: Use Pydantic library for types (#486)
* setup: Add pydantic, update mypy * refactor(fw): Use pydantic for base and common types Co-authored-by: danceratopz <[email protected]> * refactor(spec): Use pydantic types for test specs * refactor(fw): Fix all tests Co-authored-by: danceratopz <[email protected]> * refactor(fw): Cleanup exported types * refactor(evm_transition_tool): Return full dict on evaluate * fix(plugins): fix refactor issues * whilelist: Add pydantic * fix(tests): Pydantic required changes * changelog * fix(fw): Fixture block types with and without rlp * fix(fw): Transaction "to" field validation * feat(fw): add FixtureBlockBase json test * fix(fw): base fixture json generation * fix(fw): account for zero values in storage on empty account check * changelog * refactor(fw): ExceptionList as annotated type * fix(tests): exception lists * chore: fix minor typos in blobgasfee test docstrings * Apply suggestions from code review Co-authored-by: danceratopz <[email protected]> * fix(fw): Export Alloc Co-authored-by: danceratopz <[email protected]> * fix(fw): tox * fix(fw): add set/del item from Alloc * fix(tests): Use Alloc in blobgasfee tests Co-authored-by: danceratopz <[email protected]> * changelog * fix(fw): Alloc: don't pop on None assigment * fix(fw): Types: remove unused definitions --------- Co-authored-by: danceratopz <[email protected]>
- Loading branch information
1 parent
fc36d65
commit 4a65686
Showing
47 changed files
with
2,290 additions
and
3,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ line-length = 99 | |
|
||
[tool.mypy] | ||
mypy_path = "$MYPY_CONFIG_FILE_DIR/stubs" | ||
plugins = ["pydantic.mypy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.