Skip to content

Update collections.Sequence #58

@e-dervieux

Description

@e-dervieux

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions