google / brax

Massively parallel rigidbody physics simulation on accelerator hardware.
Apache License 2.0
2.25k stars 249 forks source link

Fix the dependency on dataclasses #318

Closed wang-r-j closed 1 year ago

wang-r-j commented 1 year ago

Only require dataclasses if python<3.7.

As of python 3.7, dataclasses is a built-in library. Newer versions of dataclasses require python<3.7 (ericvsmith/dataclasses@44724c4). If dataclasses is required in python>=3.7, the older version of dataclasses (with bugs) will be forced to install, which is useless and not expected.

erikfrey commented 1 year ago

Thank you!