From a781d77932682a41951c02d954e86254dd5691f9 Mon Sep 17 00:00:00 2001 From: fubuloubu <3859395+fubuloubu@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:49:22 -0400 Subject: [PATCH] fix: missing Annotated from py 3.8 --- silverback/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/silverback/types.py b/silverback/types.py index e53d8d38..98aab824 100644 --- a/silverback/types.py +++ b/silverback/types.py @@ -1,11 +1,12 @@ from datetime import datetime, timezone from decimal import Decimal from enum import Enum # NOTE: `enum.StrEnum` only in Python 3.11+ -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import BaseModel, Field from pydantic.functional_serializers import PlainSerializer from taskiq import Context, TaskiqDepends, TaskiqState +from typing_extensions import Annotated # Introduced 3.9 class TaskType(str, Enum):