Skip to content

feat(mypy): add some type hints in decoding.py#251

Open
BobTheBuidler wants to merge 2 commits intoethereum:mainfrom
BobTheBuidler:patch-4
Open

feat(mypy): add some type hints in decoding.py#251
BobTheBuidler wants to merge 2 commits intoethereum:mainfrom
BobTheBuidler:patch-4

Conversation

@BobTheBuidler
Copy link
Contributor

@BobTheBuidler BobTheBuidler commented Dec 10, 2025

I noticed you're currently working on the repo and already had these ready from my work on faster-eth-abi, decided I'd contribute them back to the main repo so everybody can benefit!

I think I have most of the library properly typed. I could port over some other type hints too if I know it would be desired, but I don't want to spend time doing so if the PRs will sit there for 6 months. Lmk if this would be a welcome addition or not.

Todo:

  • Clean up commit history

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

I noticed you're currently working on the repo and already had these ready from my work on faster-eth-abi

I could port over some other type hints too if I know it would be desired, but I don't want to spend time doing so if the PRs will sit there for 6 months.
@BobTheBuidler
Copy link
Contributor Author

I didn't add a release note for this PR, it seems unnecessary for this case but I can still add one if you prefer

* Update code_of_conduct.rst

making -> make

* Update contributing.rst

newsfragment should not be italics

* osx -> macos

* Add docs check to pre-release process

* Update license year in docs/conf

* ignore tests folder when building docs

* lower pin on wheel to post-ReDoS fix: (#138)

- We got this notice on `pyrlp`: https://github.com/ethereum/pyrlp/security/dependabot/2
- Better to be safe and lower pin ``wheel``.

* Drop python 3.8 and 3.9 support, add 3.14

* Remove deprecated license specification

Rely instead on the license classifier a few lines down

* Update mypy version

* Update pyupgrade version requirement in pre-commit config (#144)

* Lint fixes

* Fix typing

* Remove hypothesis warnings

* Add newsfragments for #250

* Fix docs/contributing

* Compile release notes for v6.0.0-beta.1

* Bump version: 5.2.0 → 6.0.0-beta.1

* feat: optimize encode and decode

- cache tuple encoder/decoder objects for reuse
- implement in codec
- Update registry.py

* newsfragment for #246

---------

Co-authored-by: Paul Robinson <5199899+pacrob@users.noreply.github.com>
Co-authored-by: fselmo <fselmo2@gmail.com>
Co-authored-by: kclowes <kclowes@users.noreply.github.com>
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.

1 participant