Skip to content

Commit 76b2614

Browse files
committed
Respond to upstream
1 parent 575ace7 commit 76b2614

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/nexus/test_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import pytest
3131
from google.protobuf import json_format
3232
from nexusrpc.testing.client import ServiceClient
33-
from typing_extensions import Never
3433

3534
import temporalio.api.failure.v1
3635
import temporalio.nexus
@@ -72,7 +71,7 @@ class MyService:
7271
# echo_renamed: nexusrpc.Operation[Input, Output] = (
7372
# nexusrpc.Operation(name="echo-renamed")
7473
# )
75-
hang: nexusrpc.Operation[Input, Never]
74+
hang: nexusrpc.Operation[Input, Output]
7675
log: nexusrpc.Operation[Input, Output]
7776
async_operation: nexusrpc.Operation[Input, Output]
7877
async_operation_without_type_annotations: nexusrpc.Operation[Input, Output]
@@ -129,8 +128,9 @@ async def echo(
129128
@nexusrpc.handler.sync_operation_handler
130129
async def hang(
131130
self, ctx: nexusrpc.handler.StartOperationContext, input: Input
132-
) -> Never:
131+
) -> Output:
133132
await asyncio.Future()
133+
return Output(value="won't reach here")
134134

135135
@nexusrpc.handler.sync_operation_handler
136136
async def non_retryable_application_error(

0 commit comments

Comments
 (0)