Skip to content

Commit 926026b

Browse files
🧹 chore(data.py): clean up unused code and improve type hint formatting
- Removed unused 'requests' variable from StatusData - Reformatted type hints in deviceTypes and operatingSystems for better readability
1 parent aded547 commit 926026b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

squarecloud/data.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class StatusData(BaseDataClass):
5858
:ivar running: weather the application is running
5959
:ivar storage: storage used by the application
6060
:ivar network: network information
61-
:ivar requests: requests made by the application
6261
:ivar uptime: uptime of the application
6362
:ivar time: time of the application
6463
@@ -79,7 +78,6 @@ class StatusData(BaseDataClass):
7978
running: bool
8079
storage: str
8180
network: dict[str, Any]
82-
requests: int
8381
uptime: int | None = None
8482
time: int | None = None
8583

@@ -306,8 +304,12 @@ class Analytics(BaseDataClass):
306304
methods: list[Any]
307305
referers: list[Any]
308306
browsers: list[Any]
309-
deviceTypes: list[Any] # noqa: N815: Ignore mixedCase naming convention
310-
operatingSystems: list[Any] # noqa: N815: Ignore mixedCase naming convention
307+
deviceTypes: list[
308+
Any
309+
] # noqa: N815: Ignore mixedCase naming convention
310+
operatingSystems: list[
311+
Any
312+
] # noqa: N815: Ignore mixedCase naming convention
311313
agents: list[Any]
312314
hosts: list[Any]
313315
paths: list[Any]

0 commit comments

Comments
 (0)