From 22abce97209ba0d1a323664becb1a644d5f562f7 Mon Sep 17 00:00:00 2001 From: Zev Isert Date: Thu, 29 Feb 2024 18:38:43 +0000 Subject: [PATCH] fix: serialize (named)tuple when using orjson --- faust/utils/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faust/utils/json.py b/faust/utils/json.py index 8fb13a386..29db0d7d1 100644 --- a/faust/utils/json.py +++ b/faust/utils/json.py @@ -69,7 +69,7 @@ DECIMAL_MAXLEN = 1000 #: Types that we convert to lists. -SEQUENCE_TYPES: TypeTuple[Iterable] = (set, frozenset, deque) +SEQUENCE_TYPES: TypeTuple[Iterable] = (set, frozenset, deque, tuple) DateTypeTuple = Tuple[Union[Type[datetime.date], Type[datetime.time]], ...] DatetimeTypeTuple = Tuple[