diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed55c68..0b5875e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - name: "Set up Python" uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: "Set up private packages SSH keys" uses: webfactory/ssh-agent@v0.6.0 with: @@ -56,7 +56,7 @@ jobs: - name: "Set up Python" uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: "Set up private packages SSH keys" uses: webfactory/ssh-agent@v0.6.0 with: diff --git a/Dockerfile b/Dockerfile index cc84551..5c13df9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Base image -FROM python:3.11-slim +FROM python:3.12-slim # Set working directory WORKDIR /app diff --git a/pyproject.toml b/pyproject.toml index a18f3e1..3360921 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.black] line-length = 100 -target-version = ['py311'] +target-version = ['py312'] include = '\.pyi?$' exclude = ''' ( diff --git a/src/api/config/loaders.py b/src/api/config/loaders.py index bffd46a..00758d6 100644 --- a/src/api/config/loaders.py +++ b/src/api/config/loaders.py @@ -5,6 +5,7 @@ from abc import ABC from abc import abstractmethod from typing import Any +from typing import override class ConfigLoader(ABC): @@ -50,6 +51,7 @@ def _parse_value(data_type: type, name: str, default: Any) -> Any: value = data_type(value) return value + @override def load_argument(self, data_type: type, name: str, default: Any) -> Any: """ Loads a single argument from the OS env. @@ -61,6 +63,7 @@ def load_argument(self, data_type: type, name: str, default: Any) -> Any: return self._parse_value(data_type, name, default) + @override def load_arguments(self, args: dict | tuple) -> dict: """ Recursive function to load multiple arguments from the OS env.