Skip to content

Conversation

@pacrob
Copy link
Contributor

@pacrob pacrob commented Jul 26, 2023

What was wrong?

The ABIFunctionComponents type is better typed recursively, but mypy did not allow it previously. It does now.

How was it fixed?

Added recursive type and removed note.

I looked through the lib for other places this kind of change might be appropriate but couldn't identify any.

Todo:

Cute Animal Picture

image

@pacrob pacrob force-pushed the recursive-typing-in-types branch from e7291df to 53881c3 Compare July 26, 2023 15:12
@pacrob pacrob changed the title recursive typing works with current mypy recursive typing for ABIFunctionComponents Jul 26, 2023
@pacrob pacrob requested review from fselmo, kclowes and reedsa July 26, 2023 15:16
Copy link
Contributor

@reedsa reedsa left a comment

Choose a reason for hiding this comment

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

Good to see this, lgtm!

Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

lgtm 👍🏼

@pacrob pacrob merged commit 300c859 into ethereum:main Jul 26, 2023
@pacrob pacrob deleted the recursive-typing-in-types branch July 26, 2023 15:50
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.

3 participants