Skip to content

Commit ef319e3

Browse files
committed
Add docstrings for GvmProtocol internal _send_request methods
Explain the purpose of both methods.
1 parent 10821b2 commit ef319e3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gvm/protocols/_protocol.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ def _transform(self, response: Response) -> T:
120120
return transform(response)
121121

122122
def _send_request(self, request: Request) -> Response:
123+
"""
124+
Send a request to the remote daemon and return the response
125+
126+
Args:
127+
request: The request to be send.
128+
"""
123129
try:
124130
send_data = self._protocol.send(request)
125131
self._send(send_data)
@@ -133,4 +139,10 @@ def _send_request(self, request: Request) -> Response:
133139
raise e
134140

135141
def _send_request_and_transform_response(self, request: Request) -> T:
142+
"""
143+
Send a request and transform its response using the transform callable.
144+
145+
Args:
146+
request: The request to be send.
147+
"""
136148
return self._transform(self._send_request(request))

0 commit comments

Comments
 (0)