Browse Source

Fix parsing inbox iteration response

Tulir Asokan 4 years ago
parent
commit
bb84e70997
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mauigpapi/types/direct_inbox.py

+ 2 - 2
mauigpapi/types/direct_inbox.py

@@ -33,9 +33,9 @@ class DMInbox(SerializableAttrs['DMInbox']):
     has_older: bool
     unseen_count: int
     unseen_count_ts: int
-    prev_cursor: DMInboxCursor
-    next_cursor: DMInboxCursor
     blended_inbox_enabled: bool
+    prev_cursor: Optional[DMInboxCursor] = None
+    next_cursor: Optional[DMInboxCursor] = None
     newest_cursor: Optional[str] = None
     oldest_cursor: Optional[str] = None