(obj: Any)
Check if a Python object is YAML-serializable (strict).

    obj: The object to check.
    RETURNS (bool): Whether the object is YAML-serializable.
Check if a Python object is YAML-serializable (strict).
Check if a Python object is YAML - serializable ( strict ) .
def is_yaml_serializable(obj: Any) -> bool:
    """Check if a Python object is YAML-serializable (strict).

    obj: The object to check.
    RETURNS (bool): Whether the object is YAML-serializable.
    """
    try:
        yaml_dumps(obj)
        return True
    except RepresenterError:
        return False
def is_yaml_serializable ( obj : Any ) -> bool : try : yaml_dumps ( obj ) return True except RepresenterError : return False