Skip to content

Commit c1271e7

Browse files
committed
Fixed typos in image type check
1 parent f643af0 commit c1271e7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

webexteamssdk/cards/components.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
from .abstract_components import Serializable
2626
from .utils import check_type
27-
from .options import BlockElementHeight, Spacing
27+
from .options import BlockElementHeight, Spacing, ImageSize, ImageStyle
2828
from .actions import OpenUrl, ShowCard, Submit
2929

3030
class 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

Comments
 (0)