| 273 | self.value = value |
| 274 | |
| 275 | class Adder(m.Adder): |
| 276 | def __call__(self, first, second, visitor): |
| 277 | # lambda is a workaround, which adds extra frame to the |
| 278 | # current CPython thread. Removing lambda reveals the bug |
| 279 | # [https://github.com/pybind/pybind11/issues/3357] |
| 280 | (lambda: visitor(Data(first.value + second.value)))() # noqa: PLC3002 |
| 281 | |
| 282 | class StoreResultVisitor: |
| 283 | def __init__(self): |
no outgoing calls