From ce5006269ffb6b3554659d251ac189e4a9f32cd8 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Tue, 5 Apr 2022 02:12:51 -0400 Subject: [PATCH] Make some missing inbound properties optional --- .../kt/types/user/channel_user_info.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/matrix_appservice_kakaotalk/kt/types/user/channel_user_info.py b/matrix_appservice_kakaotalk/kt/types/user/channel_user_info.py index 2f44a7a..42908e9 100644 --- a/matrix_appservice_kakaotalk/kt/types/user/channel_user_info.py +++ b/matrix_appservice_kakaotalk/kt/types/user/channel_user_info.py @@ -13,6 +13,8 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +from typing import Optional + from attr import dataclass from ..openlink.open_link_type import OpenChannelUserPerm @@ -36,12 +38,12 @@ class ChannelUserInfo(DisplayUserInfo): @dataclass class NormalChannelUserInfo(ChannelUserInfo): - countryIso: str accountId: int statusMessage: str linkedServices: str ut: int - suspended: bool + countryIso: Optional[str] = None # NOTE Made optional + suspended: Optional[bool] = None # NOTE Made optional @dataclass