ethereum / ethereum/eth-utils

New tests to validate type safety is preserved

Open
#153 0 comments 0 reactions 0 assignees View on GitHub
p3
Dominant language
Python
Stars
335
Forks
167
PR merge metrics
No merged PRs in 30d

Description

### What was wrong?

From: https://github.com/ethereum/eth-utils/pull/151

Looks like `flatten_return`, `reversed_return` and `sorted_return` don't do a good job of retaining type safety. It's not easy to write a test for this now.

### How can it be fixed?

Figure out how to easily write tests that demonstrate both positive and negative assertions about mypy checks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.