Skip to content

Use .copy() consistently - #5601

Merged
jtraglia merged 1 commit into
ethereum:masterfrom
jihoonsong:mypy-copy
Sep 3, 2026
Merged

Use .copy() consistently#5601
jtraglia merged 1 commit into
ethereum:masterfrom
jihoonsong:mypy-copy

Conversation

@jihoonsong

Copy link
Copy Markdown
Member

Based on this comment, it seems copy(...) in ssz_impl.py was introduced to satisfy mypy type checking. Now that we migrated to ty in #5574, we can consistently and safely use .copy().

@github-actions github-actions Bot added testing CI, actions, tests, testing infra phase0 altair bellatrix capella deneb fulu gloas eip8025 Optional Execution Proofs heze labels Sep 3, 2026

@jtraglia jtraglia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Excellent. I've noticed this too & I just never got around to fixing it. Thanks!

@jtraglia jtraglia changed the title Use .copy() consistently Use .copy() consistently Sep 3, 2026
@jtraglia
jtraglia enabled auto-merge (squash) September 3, 2026 20:40
@jtraglia
jtraglia merged commit b87f78f into ethereum:master Sep 3, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants