Skip to content

fix: asdict filter exclude list matches on name instead of attribute#1569

Closed
YousafZahid1 wants to merge 1 commit into
python-attrs:mainfrom
YousafZahid1:gray-fix-issue-864-7309b0bc
Closed

fix: asdict filter exclude list matches on name instead of attribute#1569
YousafZahid1 wants to merge 1 commit into
python-attrs:mainfrom
YousafZahid1:gray-fix-issue-864-7309b0bc

Conversation

@YousafZahid1
Copy link
Copy Markdown

Closes #864

Summary

The asdict filter now correctly excludes attributes based on their name, not the attribute's name in the parent object.

Changes:

  • Modified the asdict function to compare attribute names with the filter using the attribute's name, not the object's attribute name.

Closes #1571

@hynek hynek added the AI slop label Jun 1, 2026
@hynek hynek closed this Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

asdict filter exclude list matches on name instead of attribute

2 participants