镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Fix auto-detection of eq/ne in NG APIs - #671

Merged
hynek merged 1 commit into
masterfrom
auto-detect-eq
Aug 21, 2020
Merged

hynek merged 1 commit into
masterfrom
auto-detect-eq

Conversation

@hynek

@hynek hynek commented Aug 21, 2020 •

Copy link
Copy Markdown
Member

By setting eq to True by default, it forces __eq__/__ne__ to be written. Setting to None fixes it.

fixes #670

@hynek
hynek merged commit 358c85e into master Aug 21, 2020
@hynek
hynek deleted the auto-detect-eq branch August 21, 2020 03:19
hynek added a commit that referenced this pull request Aug 23, 2020
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

Successfully merging this pull request may close these issues.

@attr.define fails to auto-detect __eq__

1 participant