瀏覽代碼

Disable some fields that may not exist

Tulir Asokan 2 年之前
父節點
當前提交
99b7147a66
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mauigpapi/types/account.py

+ 3 - 3
mauigpapi/types/account.py

@@ -66,12 +66,12 @@ class BaseFullResponseUser(BaseResponseUser, SerializableAttrs):
     national_number: Optional[int] = None
 
     # TODO enum?
-    allowed_commenter_type: str
+    allowed_commenter_type: Optional[str] = None
 
     # These are at least in login and current_user, might not be in other places though
-    is_business: bool
+    # is_business: bool
     # TODO enum?
-    account_type: int
+    # account_type: int
 
 
 @dataclass