Skip to content

Commit 00b241e

Browse files
committed
Simpler
1 parent 51b7aa9 commit 00b241e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

conformance/test/gen/connectrpc/conformance/v1/service_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def idempotent_unary(
7575
class ConformanceServiceASGIApplication(ConnectASGIApplication[ConformanceService]):
7676
def __init__(
7777
self,
78-
service: ConformanceService | AsyncGenerator[ConformanceService, None],
78+
service: ConformanceService | AsyncGenerator[ConformanceService],
7979
*,
8080
interceptors: Iterable[Interceptor] = (),
8181
read_max_bytes: int | None = None,

example/example/eliza_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def introduce(
4242
class ElizaServiceASGIApplication(ConnectASGIApplication[ElizaService]):
4343
def __init__(
4444
self,
45-
service: ElizaService | AsyncGenerator[ElizaService, None],
45+
service: ElizaService | AsyncGenerator[ElizaService],
4646
*,
4747
interceptors: Iterable[Interceptor] = (),
4848
read_max_bytes: int | None = None,

protoc-gen-connect-python/generator/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class {{.Name}}(Protocol):{{- range .Methods }}
6868
{{ end }}
6969
7070
class {{.Name}}ASGIApplication(ConnectASGIApplication[{{.Name}}]):
71-
def __init__(self, service: {{.Name}} | AsyncGenerator[{{.Name}}, None], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
71+
def __init__(self, service: {{.Name}} | AsyncGenerator[{{.Name}}], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
7272
super().__init__(
7373
service=service,
7474
endpoints=lambda svc: { {{- range .Methods }}

src/connectrpc/_server_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def path(self) -> str: ...
8585
def __init__(
8686
self,
8787
*,
88-
service: _SVC | AsyncGenerator[_SVC, None],
88+
service: _SVC | AsyncGenerator[_SVC],
8989
endpoints: Callable[[_SVC], Mapping[str, Endpoint]],
9090
interceptors: Iterable[Interceptor] = (),
9191
read_max_bytes: int | None = None,

test/haberdasher_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def do_nothing(
5757
class HaberdasherASGIApplication(ConnectASGIApplication[Haberdasher]):
5858
def __init__(
5959
self,
60-
service: Haberdasher | AsyncGenerator[Haberdasher, None],
60+
service: Haberdasher | AsyncGenerator[Haberdasher],
6161
*,
6262
interceptors: Iterable[Interceptor] = (),
6363
read_max_bytes: int | None = None,

0 commit comments

Comments
 (0)