From b183a549cccd3a8f2538173130c62d3c901f16e3 Mon Sep 17 00:00:00 2001 From: Daniele Paganelli Date: Tue, 3 Dec 2024 17:58:39 +0100 Subject: [PATCH] Prevent AttributeError: 'GroupedFlowablesState' object has no attribute 'content_flowable_state' --- src/rinoh/flowable.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rinoh/flowable.py b/src/rinoh/flowable.py index 9f5dfaef..5d399cd6 100644 --- a/src/rinoh/flowable.py +++ b/src/rinoh/flowable.py @@ -460,6 +460,10 @@ def __init__(self, groupedflowables, flowables, first_flowable_state=None, def at_end(self): return self._index >= len(self.flowables) + @property + def content_flowable_state(self): + return self + def __copy__(self): copy_flowables = copy(self.flowables) copy_first_flowable_state = copy(self.first_flowable_state)