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

Revert "Add support for attrs.fields (#15021)" #15955

Closed
wants to merge 1 commit into from

Conversation

koogoro
Copy link
Collaborator

@koogoro koogoro commented Aug 25, 2023

This reverts commit 391ed85.

This change was reverted for release 1.5 in #15674, and for 1.4 in 3bf9fdc. This change doesn't work well with attr.has, since it doesn't recognize attr.AttrsInstance as a valid argument for attr.fields.

@koogoro koogoro requested a review from svalentin August 25, 2023 01:01
@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you be more specific about what the regression is? I fixed the thing that was a blocker for 1.4 and 1.5 in #15688 , maybe I could take a look at attr.has too

@koogoro
Copy link
Collaborator Author

koogoro commented Aug 25, 2023

Ah, I didn't realize there had been a global fix for the issue that affected 1.4 and 1.5. I'll file these as separate issues and link them in the release branch.

@koogoro koogoro closed this Aug 25, 2023
@koogoro koogoro deleted the revert-attrs-fields-change branch August 25, 2023 18:26
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.

2 participants