diff --git a/llama_stack/providers/utils/scheduler.py b/llama_stack/providers/utils/scheduler.py index 763d670ff..146591b2f 100644 --- a/llama_stack/providers/utils/scheduler.py +++ b/llama_stack/providers/utils/scheduler.py @@ -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): diff --git a/pyproject.toml b/pyproject.toml index 1fc05368f..133b78dbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -214,7 +214,6 @@ ignore = [ # These are the additional ones we started ignoring after moving to ruff. We should look into each one of them later. "C901", # Complexity of the function is too high - "UP040", # TypeAlias vs type keyword - disabled due to Pydantic compatibility ] unfixable = [ "PLE2515",