inducer / arraycontext

Choose your favorite numpy-workalike!
6 stars 11 forks source link

dataclasses: Use default_factory instead of default #206

Closed kaushikcfd closed 1 year ago

kaushikcfd commented 1 year ago

Running into errors like:

ValueError: mutable default <class 'numpy.ndarray'> for field y is not allowed: use default_factory
kaushikcfd commented 1 year ago

This is needed because of a breaking backwards compatibility in Python-3.11.

inducer commented 1 year ago

Thanks!