Browse Source

Fix optional field in Thread. Fixes #3

Tulir Asokan 4 years ago
parent
commit
9fb89e16c2
1 changed files with 1 additions and 1 deletions
  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