Skip to content

Commit 0764cd2

Browse files
committed
feat: Ensure we have real Python 3.9 to 3.13 compatibility
1 parent ce0f433 commit 0764cd2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pydantic_changedetect/changedetect.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ class Something(ChangeDetectionMixin, pydantic.BaseModel):
6969
# attributes ChangeDetectionMixin uses are defined as __slots__ and
7070
# thus just new attributes the class has - not something you need to pass
7171
# anywhere.
72-
model_original: Dict[str, Any] = PrivateAttr(...)
73-
model_self_changed_fields: set[str] = PrivateAttr(...)
74-
model_changed_markers: set[str] = PrivateAttr(...)
72+
model_original: Dict[str, Any] = PrivateAttr(...) # pyright: ignore[reportAssignmentType]
73+
model_self_changed_fields: set[str] = PrivateAttr(...) # pyright: ignore[reportAssignmentType]
74+
model_changed_markers: set[str] = PrivateAttr(...) # pyright: ignore[reportAssignmentType]
7575

7676
__slots__ = ("model_changed_markers", "model_original", "model_self_changed_fields")
7777

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ pyright = ">=1.1.350,<1.2"
2020

2121
[tool.ruff]
2222
line-length = 115
23-
target-version = "py38"
23+
target-version = "py39"
2424
output-format = "grouped"
2525

2626
[tool.ruff.lint]
2727
select = ["F","E","W","C","I","N","UP","ANN","S","B","A","COM","C4","T20","PT","ARG","TD","RUF"]
28-
ignore = ["A001","A002","A003","ANN101","ANN102","ANN401","C901","N8","B008","F405","F821"]
28+
ignore = ["A001","A002","A003","ANN401","C901","N8","B008","F405","F821", "UP035", "UP006"]
2929

3030
[tool.ruff.lint.per-file-ignores]
3131
"__init__.py" = ["F401"]

0 commit comments

Comments
 (0)