Use `dataclass.field(default_factory=)` to improve compatibility with Python 3.11 and above

#5
by mingyi456 - opened

With Python 3.11 and above, using simply using np.ndarray causes an error. The relevant changelog is here : https://docs.python.org/3.11/library/dataclasses.html#default-factory-functions
This should help with people trying to clone this repo to run locally on more recent Python versions.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment