You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@attr.define is failing to auto-detect __eq__. My understanding from the docs is that this should work, but ValueError is not being raised unless I use @attr.define(eq=False).
Yeah, I worked around it by setting @attr.define(eq=False) for the classes that need it. Thanks for the quick fix and loving the new APIs so far! As soon as I saw the new release I started purging @attr.s(auto_attribs=True) and attr.dataclass from our codebase. 😁
Activity
Fix auto-detection of eq/ne in NG APIs
hynek commentedon Aug 21, 2020
Ugh yeah that's unfortunate. Thanks for quick reporting! You should be able to work around it by setting
@attr.define(eq=None)for now.Fix auto-detection of eq/ne in NG APIs (#671)
rouge8 commentedon Aug 21, 2020
Yeah, I worked around it by setting
@attr.define(eq=False)for the classes that need it. Thanks for the quick fix and loving the new APIs so far! As soon as I saw the new release I started purging@attr.s(auto_attribs=True)andattr.dataclassfrom our codebase. 😁hynek commentedon Aug 21, 2020
That's the hope! 😅 Now let's hope the mypy gods are gracious to us. :)