Skip to content

Commit 3f85fd0

Browse files
committed
Replace deprecated Union and Optional occurrences
1 parent b7d4cd8 commit 3f85fd0

File tree

22 files changed

+275
-295
lines changed

22 files changed

+275
-295
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ xbox-xal = "pythonxbox.scripts.xal:main"
4444

4545
[tool.ruff]
4646
line-length = 88
47-
target-version = "py39"
47+
target-version = "py310"
4848

4949
[tool.ruff.lint]
5050
select = ["E4", "E7", "E9", "F", "UP"]

src/pythonxbox/api/provider/achievements/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from datetime import datetime, time
2-
from typing import Any, Optional
2+
from typing import Any
33

44
from pydantic import BaseModel
55

66
from pythonxbox.common.models import CamelCaseModel
77

88

99
class PagingInfo(CamelCaseModel):
10-
continuation_token: Optional[str] = None
10+
continuation_token: str | None = None
1111
total_records: int
1212

1313

@@ -62,7 +62,7 @@ class TitleAssociation(BaseModel):
6262

6363
class Requirement(CamelCaseModel):
6464
id: str
65-
current: Optional[str] = None
65+
current: str | None = None
6666
target: str
6767
operation_type: str
6868
value_type: str

0 commit comments

Comments
 (0)