eth-utils icon indicating copy to clipboard operation
eth-utils copied to clipboard

New tests to validate type safety is preserved

Open pipermerriam opened this issue 7 years ago • 0 comments

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.

pipermerriam avatar Apr 17 '19 17:04 pipermerriam