-
-
Notifications
You must be signed in to change notification settings - Fork 688
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
Fixed update/init with padding #3048
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
If only I'd caught it as part of the first PR! One thing I've been noticing / thinking about... Edit: or is the idea that the other three are intended to be more flexible when receiving strings/dictionaries, while in normal usage dot lookup will only be used "literally"? |
It's not syntactically possible to use hyphens with dot notation, because they would be parsed as a subtraction operator. In fact, I'm not really sure why we allow bracket notation and hyphenated forms at all. @freakboy3742: what's the use case for this? |
Oh right, duh 🤣 Brain fart moment there.
I've always assumed the former is for easier dynamic application and retrieval of properties without lots of |
One other data point is that |
Yes - the hyphen form was to accomodate the "preferred" form of CSS directives. I don't know that I have a good reason for including the bracket form and having |
One more cleanup from #3033.
padding
and its children worked fine when being set, butPack(padding=1)
orstyle.update(padding=1)
still threw an error. Fixed and tested.PR Checklist: