fix: replace datetime.UTC with timezone.utc for Python 3.10 compatibility

datetime.UTC was introduced in Python 3.11. Users on 3.10 get an ImportError.
Also lower ruff/mypy target-version from py313 to py310 to match minimum supported version.
This commit is contained in:
Pouzor
2026-03-09 22:01:32 +01:00
parent 99b40fa9e9
commit 6ae7f7768f
6 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
[tool.ruff]
target-version = "py313"
target-version = "py310"
line-length = 120
exclude = ["migrations", ".venv"]
@@ -11,7 +11,7 @@ ignore = ["B008"]
"tests/**" = ["E501"]
[tool.mypy]
python_version = "3.13"
python_version = "3.10"
strict = true
ignore_missing_imports = true
exclude = ["migrations", ".venv"]