RegscorePy icon indicating copy to clipboard operation
RegscorePy copied to clipboard

Update collections.Sequence

Open e-dervieux opened this issue 10 months ago • 0 comments

Importing Sequence from collections now triggers an error in Python > 3.7, see here:

https://stackoverflow.com/questions/69596494/unable-to-import-freegames-python-package-attributeerror-module-collections

So the code in bic.py

if not isinstance(y, (collections.Sequence, np.ndarray, pd.core.series.Series)):

should be replaced by

if not isinstance(y, (collections.abc.Sequence, np.ndarray, pd.core.series.Series)):

for instance (there may be similar instances in other file from this package).

e-dervieux avatar Feb 13 '25 11:02 e-dervieux