8000 Fixing TeamsChannelData typo (#1778) · cybsafe/botbuilder-python@135cee9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 135cee9

Browse files
authored
Fixing TeamsChannelData typo (microsoft#1778)
1 parent 70fee41 commit 135cee9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4+
from typing import List
45
from msrest.serialization import Model
56
from botbuilder.schema import (
67
Attachment,
@@ -1947,7 +1948,7 @@ def __init__(
19471948
self,
19481949
*,
19491950
continuation_token: str = None,
1950-
members: [TeamsChannelAccount] = None,
1951+
members: List[TeamsChannelAccount] = None,
19511952
**kwargs
19521953
) -> None:
19531954
super(TeamsPagedMembersResult, self).__init__(
@@ -1977,7 +1978,7 @@ class TeamsChannelData(Model):
19771978

19781979
_attribute_map = {
19791980
"channel": {"key": "channel", "type": "ChannelInfo"},
1980-
"eventType": {"key": "eventType", "type": "str"},
1981+
"event_type": {"key": "eventType", "type": "str"},
19811982
"team": {"key": "team", "type": "TeamInfo"},
19821983
"notification": {"key": "notification", "type": "NotificationInfo"},
19831984
"tenant": {"key": "tenant", "type": "TenantInfo"},
@@ -1988,7 +1989,7 @@ def __init__(
19881989
self,
19891990
*,
19901991
channel=None,
1991-
eventType: str = None,
1992+
event_type: str = None,
19921993
team=None,
19931994
notification=None,
19941995
tenant=None,
@@ -1998,7 +1999,7 @@ def __init__(
19981999
super(TeamsChannelData, self).__init__(**kwargs)
19992000
self.channel = channel
20002001
# doing camel case here since that's how the data comes in
2001-
self.event_type = eventType
2002+
self.event_type = event_type
20022003
self.team = team
20032004
self.notification = notification
20042005
self.tenant = tenant

0 commit comments

Comments
 (0)
0