24
24
25
25
from .abstract_components import Serializable
26
26
from .utils import check_type
27
- from .options import BlockElementHeight , Spacing
27
+ from .options import BlockElementHeight , Spacing , ImageSize , ImageStyle
28
28
from .actions import OpenUrl , ShowCard , Submit
29
29
30
30
class MediaSource (Serializable ):
@@ -105,7 +105,7 @@ def __init__(self,
105
105
size = None ,
106
106
style = None ,
107
107
width = None ,
108
- seperator = None ,
108
+ separator = None ,
109
109
spacing = None ,
110
110
id = None ):
111
111
"""Create a new image component
@@ -136,10 +136,10 @@ def __init__(self,
136
136
check_type (selectAction , (OpenUrl , Submit ), False , True )
137
137
check_type (size , ImageSize , False , True )
138
138
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 )
143
143
144
144
self .type = "Image"
145
145
self .url = url
@@ -151,7 +151,7 @@ def __init__(self,
151
151
self .size = size
152
152
self .style = style
153
153
self .width = width
154
- self .seperator = seperator
154
+ self .separator = separator
155
155
self .spacing = spacing
156
156
self .id = id
157
157
0 commit comments