From 3308337248efeac127e47bdc224242cad10536ae Mon Sep 17 00:00:00 2001 From: Justas Balcas Date: Mon, 23 Feb 2026 14:35:52 -0600 Subject: [PATCH 1/2] Downgrade to py313 --- .github/workflows/api-validation.yml | 2 +- Dockerfile | 2 +- Makefile | 2 +- pylintrc | 2 +- pyproject.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/api-validation.yml b/.github/workflows/api-validation.yml index 51ed3312..673a1128 100644 --- a/.github/workflows/api-validation.yml +++ b/.github/workflows/api-validation.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.13" - name: Install uv run: pip install uv diff --git a/Dockerfile b/Dockerfile index 93c80d90..9d980c40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.14 +FROM python:3.13 RUN mkdir /app COPY . /app diff --git a/Makefile b/Makefile index 60f47819..febce8ef 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PYTHON := python3.14 +PYTHON := python3.13 VENV := .venv BIN := $(VENV)/bin UV := uv diff --git a/pylintrc b/pylintrc index 4a9fbf34..99b31968 100644 --- a/pylintrc +++ b/pylintrc @@ -53,7 +53,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.14 +py-version=3.13 # Discover python modules and packages in the file system subtree. recursive=no diff --git a/pyproject.toml b/pyproject.toml index 356763e5..b8cf29c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "iri-api-python" version = "0.1.0" -requires-python = ">=3.14,<3.15" +requires-python = ">=3.13,<3.14" dependencies = [ "fastapi[standard]>=0.128.0,<0.129.0", "uvicorn[standard]>=0.40.0,<0.41.0", From 822af942b5e1151d07b2fce9201e6d9bc45db0fd Mon Sep 17 00:00:00 2001 From: Justas Balcas Date: Mon, 23 Feb 2026 15:01:20 -0600 Subject: [PATCH 2/2] Remove unsupported operand. Py3.13 vs 3.14 --- app/types/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/types/base.py b/app/types/base.py index c0a55ddd..d28d1651 100644 --- a/app/types/base.py +++ b/app/types/base.py @@ -32,7 +32,7 @@ def get_extra(self, key, default=None): return getattr(self, "__pydantic_extra__", {}).get(key, default) @classmethod - def normalize_dt(cls, dt: datetime | None) -> datetime | None: + def normalize_dt(cls, dt: datetime) -> datetime: """Normalize datetime to UTC-aware.""" # Convert naive datetimes into UTC-aware versions if dt is None: