Skip to content

Commit 2bc6a02

Browse files
committed
Correcting Horizontal Alignment Bug
1 parent 0ba63a5 commit 2bc6a02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webexteamssdk/models/cards/components.py

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

2525
from .actions import OpenUrl, Submit
2626
from .adaptive_card_component import AdaptiveCardComponent
27-
from .options import BlockElementHeight, ImageSize, ImageStyle, Spacing
27+
from .options import BlockElementHeight, ImageSize, ImageStyle, Spacing, HorizontalAlignment
2828
from .utils import check_type
2929

3030

@@ -126,7 +126,7 @@ def __init__(self, url, altText=None, backgroundColor=None, height=None,
126126
check_type(altText, str, optional=True)
127127
check_type(backgroundColor, str, optional=True)
128128
check_type(height, (str, BlockElementHeight), optional=True)
129-
check_type(horizontalAlignment, horizontalAlignment, optional=True)
129+
check_type(horizontalAlignment, (str, HorizontalAlignment), optional=True)
130130
check_type(selectAction, (OpenUrl, Submit), optional=True)
131131
check_type(size, ImageSize, optional=True)
132132
check_type(style, ImageStyle, optional=True)

0 commit comments

Comments
 (0)