Recent Commits to lark:master

  • 24/06/2026 9:41

    Fix Transformer_NonRecursive crashing with ValueError when root is di…

    Fix Transformer_NonRecursive crashing with ValueError when root is discarded
    
    When the root tree node's callback returns Discard, the stack is left
    empty and the unpacking `result, = stack` raises ValueError. The
    recursive Transformer.transform() handles this by returning None;
    apply the same guard here.
    
    Fixes #1611

Log in