From c3fadfb5f00f432b511174076f134f54092e8e4b Mon Sep 17 00:00:00 2001 From: Vikram Patki 24489 Date: Fri, 4 Feb 2022 08:25:45 -0500 Subject: [PATCH] fix errors in seek when flow is not active --- faust/types/models.py | 1 + faust/utils/json.py | 1 + 2 files changed, 2 insertions(+) diff --git a/faust/types/models.py b/faust/types/models.py index 3cba768bf..620766375 100644 --- a/faust/types/models.py +++ b/faust/types/models.py @@ -57,6 +57,7 @@ def __init_subclass__( class _UsingKwargsInNew(_InitSubclassCheck, ident=909): ... + except TypeError: abc_compatible_with_init_subclass = False else: diff --git a/faust/utils/json.py b/faust/utils/json.py index cf815a2fa..30bda8b0d 100644 --- a/faust/utils/json.py +++ b/faust/utils/json.py @@ -179,6 +179,7 @@ def loads(s: str, json_loads: Callable = orjson.loads, **kwargs: Any) -> Any: """Deserialize json string.""" return json_loads(s) + else: def dumps(