Skip to content

Fix padding of empty rich attributes in enum patches - #26

Merged
OmeGak merged 1 commit into
masterfrom
fix-empty-rich-attrs
Nov 11, 2026
Merged

OmeGak merged 1 commit into
masterfrom
fix-empty-rich-attrs

Conversation

@OmeGak

@OmeGak OmeGak commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Patching a RichIntEnum with padding filled __css_classes__ with Nones even when neither the enum nor the patch had any CSS classes. css_class then raised IndexError for patched members instead of returning None. This skips a rich attribute that the patch leaves empty.

@OmeGak
OmeGak force-pushed the fix-empty-rich-attrs branch from 37a4923 to 581bfc5 Compare November 11, 2026 14:31
@OmeGak
OmeGak merged commit 083b53e into master Nov 11, 2026
2 checks passed
@OmeGak
OmeGak deleted the fix-empty-rich-attrs branch November 11, 2026 14:33
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.

1 participant