biqqles / dataclassy

A fast and flexible reimplementation of data classes
https://pypi.org/project/dataclassy
Mozilla Public License 2.0
81 stars 9 forks source link

Tests: make signature checks version-agnostic #42

Closed biqqles closed 3 years ago

biqqles commented 3 years ago

inspect.Signature is irritating to use, and so we convert it to a string to check function signatures against their expected value. The problem with this is that Python periodically changes the behaviour of Signature.__str__. This results in spurious test failures (the tests are currently set up for the format produced in 3.7..3.9).

This blocks #41.

biqqles commented 3 years ago

Postponed evaluation of annotations by default has been moved to Python 3.11 so this can be closed.