Skip to content

Commit 24b89f9

Browse files
ci: auto fixes from pre-commit.com hooks
1 parent 7a026d8 commit 24b89f9

File tree

20 files changed

+136
-136
lines changed

20 files changed

+136
-136
lines changed

elytra/bedrock_realms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

elytra/bedrock_realms/models.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -90,7 +90,7 @@ class RealmStorySettings(ParsableCamelModel):
9090
@add_decoder
9191
class FullRealm(ParsableCamelModel):
9292
id: int
93-
owner: typing.Optional[str]
93+
owner: str | None
9494
name: str
9595
default_permission: Permission
9696
state: State
@@ -107,10 +107,10 @@ class FullRealm(ParsableCamelModel):
107107
subscription_refresh_status: NoneType
108108
owner_uuid: str = msgspec.field(name="ownerUUID")
109109
member: bool = False
110-
slots: typing.Optional[typing.Any] = None
111-
players: typing.Optional[list[Player]] = None
112-
club_id: typing.Optional[int] = None
113-
motd: typing.Optional[str] = None
110+
slots: typing.Any | None = None
111+
players: list[Player] | None = None
112+
club_id: int | None = None
113+
motd: str | None = None
114114

115115

116116
@add_decoder
@@ -123,10 +123,10 @@ class IndividualRealm(ParsableCamelModel):
123123
owner_uuid: str = msgspec.field(name="ownerUUID")
124124
member: bool = False
125125
is_hardcore: bool = False
126-
players: typing.Optional[list[Player]] = None
127-
club_id: typing.Optional[int] = None
128-
motd: typing.Optional[str] = None
129-
stories_settings: typing.Optional[RealmStorySettings] = None
126+
players: list[Player] | None = None
127+
club_id: int | None = None
128+
motd: str | None = None
129+
stories_settings: RealmStorySettings | None = None
130130

131131

132132
@add_decoder

elytra/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

elytra/core.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -115,8 +115,8 @@ class OAuth2TokenResponse(ParsableModel):
115115
scope: str
116116
access_token: str
117117
issued: datetime.datetime = msgspec.field(default_factory=utc_now)
118-
user_id: typing.Optional[str] = None
119-
refresh_token: typing.Optional[str] = None
118+
user_id: str | None = None
119+
refresh_token: str | None = None
120120

121121
def is_valid(self) -> bool:
122122
return (self.issued + datetime.timedelta(seconds=self.expires_in)) > utc_now()
@@ -475,9 +475,9 @@ async def request(
475475
method: str,
476476
url: str,
477477
json: typing.Any = None,
478-
data: typing.Optional[dict] = None,
479-
params: typing.Optional[dict] = None,
480-
headers: typing.Optional[dict] = None,
478+
data: dict | None = None,
479+
params: dict | None = None,
480+
headers: dict | None = None,
481481
*,
482482
force_refresh: bool = False,
483483
dont_handle_ratelimit: bool = False,
@@ -525,9 +525,9 @@ async def get(
525525
self,
526526
url: str,
527527
json: typing.Any = None,
528-
data: typing.Optional[dict] = None,
529-
params: typing.Optional[dict] = None,
530-
headers: typing.Optional[dict] = None,
528+
data: dict | None = None,
529+
params: dict | None = None,
530+
headers: dict | None = None,
531531
**kwargs: typing.Any,
532532
) -> httpx.Response:
533533
return await self.request(
@@ -544,9 +544,9 @@ async def post(
544544
self,
545545
url: str,
546546
json: typing.Any = None,
547-
data: typing.Optional[dict] = None,
548-
params: typing.Optional[dict] = None,
549-
headers: typing.Optional[dict] = None,
547+
data: dict | None = None,
548+
params: dict | None = None,
549+
headers: dict | None = None,
550550
**kwargs: typing.Any,
551551
) -> httpx.Response:
552552
return await self.request(
@@ -563,9 +563,9 @@ async def put(
563563
self,
564564
url: str,
565565
json: typing.Any = None,
566-
data: typing.Optional[dict] = None,
567-
params: typing.Optional[dict] = None,
568-
headers: typing.Optional[dict] = None,
566+
data: dict | None = None,
567+
params: dict | None = None,
568+
headers: dict | None = None,
569569
**kwargs: typing.Any,
570570
) -> httpx.Response:
571571
return await self.request(
@@ -582,9 +582,9 @@ async def delete(
582582
self,
583583
url: str,
584584
json: typing.Any = None,
585-
data: typing.Optional[dict] = None,
586-
params: typing.Optional[dict] = None,
587-
headers: typing.Optional[dict] = None,
585+
data: dict | None = None,
586+
params: dict | None = None,
587+
headers: dict | None = None,
588588
**kwargs: typing.Any,
589589
) -> httpx.Response:
590590
return await self.request(

elytra/protocols.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -33,9 +33,9 @@ async def request(
3333
method: str,
3434
url: str,
3535
json: typing.Any = None,
36-
data: typing.Optional[dict] = None,
37-
params: typing.Optional[dict] = None,
38-
headers: typing.Optional[dict] = None,
36+
data: dict | None = None,
37+
params: dict | None = None,
38+
headers: dict | None = None,
3939
*,
4040
force_refresh: bool = False,
4141
**kwargs: typing.Any,
@@ -45,38 +45,38 @@ async def get(
4545
self,
4646
url: str,
4747
json: typing.Any = None,
48-
data: typing.Optional[dict] = None,
49-
params: typing.Optional[dict] = None,
50-
headers: typing.Optional[dict] = None,
48+
data: dict | None = None,
49+
params: dict | None = None,
50+
headers: dict | None = None,
5151
**kwargs: typing.Any,
5252
) -> httpx.Response: ...
5353

5454
async def post(
5555
self,
5656
url: str,
5757
json: typing.Any = None,
58-
data: typing.Optional[dict] = None,
59-
params: typing.Optional[dict] = None,
60-
headers: typing.Optional[dict] = None,
58+
data: dict | None = None,
59+
params: dict | None = None,
60+
headers: dict | None = None,
6161
**kwargs: typing.Any,
6262
) -> httpx.Response: ...
6363

6464
async def put(
6565
self,
6666
url: str,
6767
json: typing.Any = None,
68-
data: typing.Optional[dict] = None,
69-
params: typing.Optional[dict] = None,
70-
headers: typing.Optional[dict] = None,
68+
data: dict | None = None,
69+
params: dict | None = None,
70+
headers: dict | None = None,
7171
**kwargs: typing.Any,
7272
) -> httpx.Response: ...
7373

7474
async def delete(
7575
self,
7676
url: str,
7777
json: typing.Any = None,
78-
data: typing.Optional[dict] = None,
79-
params: typing.Optional[dict] = None,
80-
headers: typing.Optional[dict] = None,
78+
data: dict | None = None,
79+
params: dict | None = None,
80+
headers: dict | None = None,
8181
**kwargs: typing.Any,
8282
) -> httpx.Response: ...

elytra/retry_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

elytra/scripts/auth_device_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

elytra/scripts/authenticate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

elytra/xbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

elytra/xbox/club/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
MIT License
33
4-
Copyright (c) 2023-2024 AstreaTSS
4+
Copyright (c) 2023-2025 AstreaTSS
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)