Revert "try change type to TypeAlias"

This reverts commit e0a8f04766.
This commit is contained in:
Swapna Lekkala 2025-09-08 14:40:31 -07:00
parent e0a8f04766
commit 9bfa8d4187
2 changed files with 3 additions and 4 deletions

View file

@ -11,7 +11,7 @@ import threading
from collections.abc import Callable, Coroutine, Iterable from collections.abc import Callable, Coroutine, Iterable
from datetime import UTC, datetime from datetime import UTC, datetime
from enum import Enum from enum import Enum
from typing import Any, TypeAlias from typing import Any
from pydantic import BaseModel from pydantic import BaseModel
@ -30,8 +30,8 @@ class JobStatus(Enum):
completed = "completed" completed = "completed"
JobID: TypeAlias = str type JobID = str
JobType: TypeAlias = str type JobType = str
class JobArtifact(BaseModel): class JobArtifact(BaseModel):

View file

@ -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. # 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 "C901", # Complexity of the function is too high
"UP040", # TypeAlias vs type keyword - disabled due to Pydantic compatibility
] ]
unfixable = [ unfixable = [
"PLE2515", "PLE2515",