Skip to content

Commit

Permalink
Fixed py3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius committed Aug 28, 2024
1 parent 612df57 commit 579d7dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taskiq/serializers/cbor_serializer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
from typing import Any, Callable, Optional
from typing import Any, Callable, Dict, Optional

from taskiq.abc.serializer import TaskiqSerializer

Expand Down Expand Up @@ -28,7 +28,7 @@ def __init__(
# Decoder options
tag_hook: Optional[Callable[["cbor2.CBORDecoder", Any], Any]] = None,
object_hook: Optional[
Callable[["cbor2.CBORDecoder", dict[Any, Any]], Any]
Callable[["cbor2.CBORDecoder", Dict[Any, Any]], Any]
] = None,
) -> None:
if cbor2 is None:
Expand Down

0 comments on commit 579d7dd

Please sign in to comment.