MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / Closure

Class Closure

demo/Paper2Poster/utils/src/presentation.py:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58@dataclass
59class Closure:
60 closure: Callable
61 paragraph_id: int = -1
62
63 def apply(self, shape: BaseShape):
64 """
65 Apply the closure to a shape.
66
67 Args:
68 shape (BaseShape): The shape to apply the closure to.
69 """
70 self.closure(shape)
71
72 def __gt__(self, other):
73 if self.paragraph_id != other.paragraph_id:
74 return self.paragraph_id > other.paragraph_id
75
76
77class Paragraph:

Callers 3

del_paragraphFunction · 0.90
replace_paragraphFunction · 0.90
clone_paragraphFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected