Skip to content

Commit f641a4c

Browse files
committed
Updating _process_pipeline type hints to reflect return of None
Signed-off-by: Matthew Penn <[email protected]>
1 parent cfd21fd commit f641a4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nat/observability/exporter/processing_exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ async def _pre_start(self) -> None:
382382
self.output_type,
383383
e)
384384

385-
async def _process_pipeline(self, item: PipelineInputT) -> PipelineOutputT:
385+
async def _process_pipeline(self, item: PipelineInputT) -> PipelineOutputT | None:
386386
"""Process item through all registered processors.
387387
388388
Args:
@@ -481,7 +481,7 @@ async def _export_with_processing(self, item: PipelineInputT) -> None:
481481
"""
482482
try:
483483
# Then, run through the processor pipeline
484-
final_item: PipelineOutputT = await self._process_pipeline(item)
484+
final_item: PipelineOutputT | None = await self._process_pipeline(item)
485485

486486
# Skip export if pipeline dropped the item (returned None)
487487
if final_item is None:

0 commit comments

Comments
 (0)