eli5 icon indicating copy to clipboard operation
eli5 copied to clipboard

cmp will be depreciated

Open icfly2 opened this issue 5 years ago • 0 comments

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.

icfly2 avatar Jan 12 '21 14:01 icfly2