Преглед изворни кода

Fix optional field in Thread. Fixes #3

Tulir Asokan пре 4 година
родитељ
комит
9fb89e16c2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      mauigpapi/types/thread.py

+ 1 - 1
mauigpapi/types/thread.py

@@ -47,7 +47,7 @@ class Thread(SerializableAttrs['Thread']):
 
     users: List[ThreadUser]
     # left_users: List[TODO]
-    inviter: BaseResponseUser
+    inviter: Optional[BaseResponseUser] = None
     admin_user_ids: List[int]
 
     last_activity_at: int