Source code for fastpyxl.typed_serialisable.compat
from __future__ import annotations
[docs]
def supports_from_tree(expected_type) -> bool:
return hasattr(expected_type, "from_tree")
[docs]
def supports_to_tree(value) -> bool:
return hasattr(value, "to_tree")