Skip to content

Commit 61b9668

Browse files
committed
fix type issue
1 parent 41eafbf commit 61b9668

File tree

1 file changed

+1
-10
lines changed
  • packages/service-library/src/servicelib/celery

1 file changed

+1
-10
lines changed

packages/service-library/src/servicelib/celery/models.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import datetime
22
from enum import StrEnum
3-
from types import NoneType
43
from typing import Annotated, Final, Literal, Protocol, Self, TypeAlias, TypeVar
54
from uuid import UUID
65

@@ -21,15 +20,7 @@
2120
_FORBIDDEN_KEYS = ("*", _TASK_ID_KEY_DELIMITATOR, "=")
2221
_FORBIDDEN_VALUES = (_TASK_ID_KEY_DELIMITATOR, "=")
2322
AllowedTypes = (
24-
int
25-
| float
26-
| bool
27-
| str
28-
| NoneType
29-
| list[str]
30-
| list[int]
31-
| list[float]
32-
| list[bool]
23+
int | float | bool | str | None | list[str] | list[int] | list[float] | list[bool]
3324
)
3425

3526
Wildcard: TypeAlias = Literal["*"]

0 commit comments

Comments
 (0)