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

fix: enforce string-only keys in .attrs #3350

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

pfackeldey
Copy link
Collaborator

As @agoose77 suggested (in #3344) we should restrict keys of .attrs to str only.

Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

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

Looks good! At first, I was wondering why we need a helper function just to do a runtime type check, but now I see that it's to use in a list comprehension and | union (instead of a more pedestrian sequence of statements). But that's fine.

This is ready to merge!

@pfackeldey pfackeldey merged commit bc14d22 into main Dec 18, 2024
39 checks passed
@pfackeldey pfackeldey deleted the pfackeldey/enforce_Attr_keys_are_strings branch December 18, 2024 16:58
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