Skip to content

Commit 8dd3143

Browse files
Vishwa Prakash Gayasenfacebook-github-bot
authored andcommitted
Remove client sink class from stream stub
Summary: - Client sink class was incorrectly added in stream interfaces but never used - When Sink support was added, it is correctly added in sink.pyi - Remove it from stream for cleanup Reviewed By: Sunnie912 Differential Revision: D83259863 fbshipit-source-id: 2fe8849114a73ae53f48796ed94b369f62a30195
1 parent 4d80704 commit 8dd3143

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • third-party/thrift/src/thrift/lib/python/streaming

third-party/thrift/src/thrift/lib/python/streaming/stream.pyi

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@
1414

1515
# pyre-strict
1616

17-
from typing import AsyncIterator, Generic, TypeVar
17+
from typing import AsyncIterator, TypeVar
1818

1919
TChunk = TypeVar("TChunk")
2020
TFinalResponse = TypeVar("TFinalResponse")
2121

22-
class ClientSink(Generic[TFinalResponse]):
23-
def __init__(self) -> None: ...
24-
async def sink(
25-
self, iterator: AsyncIterator[TChunk]
26-
) -> Generic[TFinalResponse]: ...
27-
2822
class ClientBufferedStream(AsyncIterator[TChunk]):
2923
def __aiter__(self) -> AsyncIterator[TChunk]: ...
3024
async def __anext__(self) -> TChunk: ...

0 commit comments

Comments
 (0)