Explorar o código

Don't require error_type in CheckpointResponse

Tulir Asokan %!s(int64=4) %!d(string=hai) anos
pai
achega
b0055d242e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mauigpapi/types/error.py

+ 1 - 1
mauigpapi/types/error.py

@@ -48,8 +48,8 @@ class CheckpointChallenge(SerializableAttrs['CheckpointChallenge']):
 class CheckpointResponse(SerializableAttrs['CheckpointResponse']):
     message: str  # challenge_required
     status: str  # fail
-    error_type: str
     challenge: CheckpointChallenge
+    error_type: Optional[str] = None
 
 
 @dataclass