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

#5
by mingyi456 - opened

With Python 3.11 and above, 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.

smola changed pull request status to merged

Sign up or log in to comment