From 96e34e258866dc5ed1902e2f4b4e8971a02d8f8b Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Thu, 30 Jan 2025 20:32:35 +0100 Subject: [PATCH] Change optional fields in BringAuthResponse and related classes to use None type --- bring_api/types.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bring_api/types.py b/bring_api/types.py index 28795c8..d92a20e 100644 --- a/bring_api/types.py +++ b/bring_api/types.py @@ -124,9 +124,9 @@ class BringAuthResponse(DataClassORJSONMixin): refresh_token: str token_type: str expires_in: int - photoPath: str = "" - email: str = "" - name: str = "" + photoPath: str | None = None + email: str | None = None + name: str | None = None @dataclass(kw_only=True) @@ -232,8 +232,8 @@ class BringSyncCurrentUserResponse(DataClassORJSONMixin): publicUserUuid: str userLocale: UserLocale userUuid: str - name: str = "" - photoPath: str = "" + name: str | None = None + photoPath: str | None = None class BringAttribute(TypedDict): @@ -319,9 +319,9 @@ class BringUser: plusTryOut: bool country: str language: str - name: str = "" - email: str = "" - photoPath: str = "" + name: str | None = None + email: str | None = None + photoPath: str | None = None @dataclass(kw_only=True)