You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest we accept specifying an image attribute with a single string value as an optional syntax in addition to the current syntax. Often, only the single mandatory src attribute of an image is needed, and then it's shorter to just specify this string value to the image attribute directly.
I suggest we accept specifying an
image
attribute with a single string value as an optional syntax in addition to the current syntax. Often, only the single mandatorysrc
attribute of animage
is needed, and then it's shorter to just specify this string value to theimage
attribute directly.This might also be a more intuitive syntax for beginners, and would have helped in use cases like #281.
It's quite easy to implement this in a method to the
Image
dataclass.There might also be other
dict
attributes that could benefit of such an alternative syntax, like inadditional_components
andadditional_bom_items
.The text was updated successfully, but these errors were encountered: