Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmp will be depreciated #402

Open
icfly2 opened this issue Jan 12, 2021 · 0 comments
Open

cmp will be depreciated #402

icfly2 opened this issue Jan 12, 2021 · 0 comments

Comments

@icfly2
Copy link

icfly2 commented Jan 12, 2021

https://www.attrs.org/en/stable/changelog.html and the corresponding deprecation warning:

eli5\base_utils.py:36
  C:\Users\...\eli5\eli5\base_utils.py:36: DeprecationWarning: The usage of `cmp` is deprecated and will be removed on or after 2021-06-01.  Please use `eq` and `order` instead.
    return attr.s(class_, these=these, init=False, slots=True, **attrs_kwargs)  # type: ignore

-- Docs: https://docs.pytest.org/en/stable/warnings.html

I'm not familiar with this modle, so I can't suggest a fix, but perhaps replacing cmp with __eq__ would be sufficient to avoid problems later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant