Skip to content

Commit 35fc348

Browse files
fix: defining default value "None" for some attributes
1 parent 4b8c9dc commit 35fc348

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

squarecloud/data.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ class AppData:
5757
'dynamic',
5858
]
5959
cluster: Literal['free-', 'florida-1']
60-
domain: str | None
61-
custom: str | None
6260
isWebsite: bool
6361
gitIntegration: bool
62+
domain: str | None = None
63+
custom: str | None = None
6464

6565

6666
@dataclass
@@ -69,15 +69,15 @@ class UserData:
6969
id: int
7070
tag: str
7171
locale: str
72-
email: str | None
7372
plan: PlanData
7473
blocklist: bool
74+
email: str | None = None
7575

7676

7777
@dataclass
7878
class LogsData:
7979
"""logs data class"""
80-
logs: str | None
80+
logs: str | None = None
8181

8282
def __eq__(self, other):
8383
return isinstance(other, LogsData) and self.logs == other.logs
@@ -97,8 +97,8 @@ class UploadData:
9797
avatar: str
9898
ram: int
9999
cpu: int
100-
subdomain: str | None
101-
description: str | None
100+
subdomain: str | None = None
101+
description: str | None = None
102102

103103

104104
@dataclass

0 commit comments

Comments
 (0)