2424
2525from .abstract_components import Serializable
2626from .utils import check_type
27- from .options import BlockElementHeight , Spacing
27+ from .options import BlockElementHeight , Spacing , ImageSize , ImageStyle
2828from .actions import OpenUrl , ShowCard , Submit
2929
3030class MediaSource (Serializable ):
@@ -105,7 +105,7 @@ def __init__(self,
105105 size = None ,
106106 style = None ,
107107 width = None ,
108- seperator = None ,
108+ separator = None ,
109109 spacing = None ,
110110 id = None ):
111111 """Create a new image component
@@ -136,10 +136,10 @@ def __init__(self,
136136 check_type (selectAction , (OpenUrl , Submit ), False , True )
137137 check_type (size , ImageSize , False , True )
138138 check_type (style , ImageStyle , False , True )
139- check_style (width , str , False , True )
140- check_style (separator , bool , False , True )
141- check_style (spacing , Spacing , False , True )
142- check_style (id , str , False , True )
139+ check_type (width , str , False , True )
140+ check_type (separator , bool , False , True )
141+ check_type (spacing , Spacing , False , True )
142+ check_type (id , str , False , True )
143143
144144 self .type = "Image"
145145 self .url = url
@@ -151,7 +151,7 @@ def __init__(self,
151151 self .size = size
152152 self .style = style
153153 self .width = width
154- self .seperator = seperator
154+ self .separator = separator
155155 self .spacing = spacing
156156 self .id = id
157157
0 commit comments