From 9bfa8d4187683a24555321993beec60b19285a5b Mon Sep 17 00:00:00 2001 From: Swapna Lekkala Date: Mon, 8 Sep 2025 14:40:31 -0700 Subject: [PATCH] Revert "try change type to TypeAlias" This reverts commit e0a8f04766305a9c07e29bbd91babef34796c5d6. --- llama_stack/providers/utils/scheduler.py | 6 +++--- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) 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",