chore: bump python supported version to 3.12

The project now supports Python >= 3.12

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-06-19 14:46:52 +02:00
parent 6fde601765
commit 6c73ec5ba5
No known key found for this signature in database
19 changed files with 56 additions and 509 deletions

View file

@ -11,7 +11,7 @@ import threading
from collections.abc import Callable, Coroutine, Iterable
from datetime import UTC, datetime
from enum import Enum
from typing import Any, TypeAlias
from typing import Any
from pydantic import BaseModel
@ -30,8 +30,8 @@ class JobStatus(Enum):
completed = "completed"
JobID: TypeAlias = str
JobType: TypeAlias = str
type JobID = str
type JobType = str
class JobArtifact(BaseModel):
@ -47,7 +47,7 @@ JobHandler = Callable[
]
LogMessage: TypeAlias = tuple[datetime, str]
type LogMessage = tuple[datetime, str]
_COMPLETED_STATUSES = {JobStatus.completed, JobStatus.failed}