We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4e4e75 commit 56a9afbCopy full SHA for 56a9afb
src/py_avro_schema/_schemas.py
@@ -1423,7 +1423,10 @@ def _is_list_any(py_type: Type) -> bool:
1423
1424
def is_logically_json(py_type: Type) -> bool:
1425
"""Returns whether a given type is logically a JSON and can be serialized as such"""
1426
- return _is_list_any(py_type) or _is_list_dict_str_any(py_type) or _is_dict_str_any(py_type)
+ try:
1427
+ return _is_list_any(py_type) or _is_list_dict_str_any(py_type) or _is_dict_str_any(py_type)
1428
+ except RecursionError:
1429
+ return False
1430
1431
1432
def _is_class(
0 commit comments