Skip to content

Commit

Permalink
fix: missing Annotated from py 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed May 2, 2024
1 parent 1f86d98 commit acccdbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion silverback/types.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit acccdbb

Please sign in to comment.