christianhelle / autofaker

Python library designed to minimize the setup/arrange phase of your unit tests
MIT License
6 stars 3 forks source link

fix: ValueError: mutable default <class 'list'> for field x is not alowed: use default_factory #18

Closed flobz closed 1 year ago

flobz commented 1 year ago

Hello, This PR allow to use list of element in dataclass.

flobz commented 1 year ago

I fixed the compatibility with python3.7

christianhelle commented 1 year ago

@flobz Thanks for your contribution. The changes look good to me and my only concern was that the tests were failing in Python 3.7 and 3.8

Let's get these changes merged in and released as soon as all tests are green

christianhelle commented 1 year ago

@flobz your contribution is now released to PyPi as v1.0.19

flobz commented 1 year ago

Thanks