Skip to content

Commit d9f8df7

Browse files
committed
Changes from comments on PR #3433
1 parent 39584f6 commit d9f8df7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

web3/providers/persistent/persistent_connection.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def subscriptions(self) -> Dict[str, Any]:
3939

4040
async def make_request(self, method: RPCEndpoint, params: Any) -> RPCResponse:
4141
"""
42-
Make a request to the persistent connection, returning the response. This method
42+
Make a request to the persistent connection and return the response. This method
4343
does not process the response as it would when invoking a method via the
4444
appropriate module on the `AsyncWeb3` instance,
4545
e.g. `w3.eth.get_block("latest")`.
@@ -68,15 +68,17 @@ async def recv(self) -> RPCResponse:
6868
Receive the next unprocessed response for a request from the persistent
6969
connection.
7070
71-
:return: RPCResponse: The raw, unprocessed message from the
72-
persistent connection.
71+
:return: The next unprocessed response for a request from the persistent
72+
connection.
73+
:rtype: RPCResponse
7374
"""
7475
return await self._manager.recv()
7576

7677
def process_subscriptions(self) -> "_AsyncPersistentMessageStream":
7778
"""
7879
Asynchronous iterator that yields messages from the subscription message stream.
7980
80-
:return: _AsyncPersistentMessageStream: The subscription message stream.
81+
:return: The subscription message stream.
82+
:rtype: _AsyncPersistentMessageStream
8183
"""
8284
return self._manager._persistent_message_stream()

0 commit comments

Comments
 (0)