Spaces:
Running
on
Zero
Running
on
Zero
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.