Skip to content

Commit 02916b2

Browse files
committed
Update docs to match code changes
Signed-off-by: David Gardner <[email protected]>
1 parent 049c5ca commit 02916b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/developer_guide/guides/3_simple_cpp_stage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ As mentioned in the previous section, our `_build_single` method needs to be upd
383383

384384
```python
385385
def _build_single(self, builder: mrc.Builder, input_node: mrc.SegmentObject) -> mrc.SegmentObject:
386-
if self._build_cpp_node() and isinstance(self._input_type, ControlMessage):
386+
if self._build_cpp_node() and issubclass(self._input_type, ControlMessage):
387387
from ._lib import pass_thru_cpp
388388

389389
node = pass_thru_cpp.PassThruStage(builder, self.unique_name)
@@ -438,7 +438,7 @@ class PassThruStage(PassThruTypeMixin, GpuAndCpuMixin, SinglePortStage):
438438
return message
439439

440440
def _build_single(self, builder: mrc.Builder, input_node: mrc.SegmentObject) -> mrc.SegmentObject:
441-
if self._build_cpp_node() and isinstance(self._input_type, ControlMessage):
441+
if self._build_cpp_node() and issubclass(self._input_type, ControlMessage):
442442
from ._lib import pass_thru_cpp
443443

444444
node = pass_thru_cpp.PassThruStage(builder, self.unique_name)

0 commit comments

Comments
 (0)