We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 766b121 commit 98893d0Copy full SHA for 98893d0
src/py_avro_schema/_schemas.py
@@ -1459,7 +1459,10 @@ def _is_list_any(py_type: Type) -> bool:
1459
1460
def is_logically_json(py_type: Type) -> bool:
1461
"""Returns whether a given type is logically a JSON and can be serialized as such"""
1462
- return _is_list_any(py_type) or _is_list_dict_str_any(py_type) or _is_dict_str_any(py_type)
+ try:
1463
+ return _is_list_any(py_type) or _is_list_dict_str_any(py_type) or _is_dict_str_any(py_type)
1464
+ except RecursionError:
1465
+ return False
1466
1467
1468
def _is_class(
0 commit comments