Skip to content

Commit b1bb1b0

Browse files
committed
Minor doc improvements suggested by ruff
1 parent 4631d71 commit b1bb1b0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

minfraud/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This is an internal module used for preparing the minFraud request.
1+
"""Internal module used for preparing the minFraud request.
22
33
This code is only intended for internal use and is subject to change in ways
44
that may break any direct use of it.

minfraud/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This is an internal module used for validating the minFraud request.
1+
"""Internal module used for validating the minFraud request.
22
33
Internal code for validating the transaction dictionary.
44

minfraud/webservice.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _exception_for_error(
9191
HTTPError,
9292
PermissionRequiredError,
9393
]:
94-
"""Returns the exception for the error responses."""
94+
"""Return the exception for the error responses."""
9595
if 400 <= status < 500:
9696
return self._exception_for_4xx_status(status, content_type, raw_body, uri)
9797
if 500 <= status < 600:
@@ -111,7 +111,7 @@ def _exception_for_4xx_status(
111111
HTTPError,
112112
PermissionRequiredError,
113113
]:
114-
"""Returns exception for error responses with 4xx status codes."""
114+
"""Return exception for error responses with 4xx status codes."""
115115
if not raw_body:
116116
return HTTPError(
117117
f"Received a {status} error with no body",
@@ -164,7 +164,7 @@ def _exception_for_web_service_error(
164164
PermissionRequiredError,
165165
InsufficientFundsError,
166166
]:
167-
"""Returns exception for error responses with the JSON body."""
167+
"""Return exception for error responses with the JSON body."""
168168
if code in (
169169
"ACCOUNT_ID_REQUIRED",
170170
"AUTHORIZATION_INVALID",
@@ -185,7 +185,7 @@ def _exception_for_5xx_status(
185185
raw_body: Optional[str],
186186
uri: str,
187187
) -> HTTPError:
188-
"""Returns exception for error response with 5xx status codes."""
188+
"""Return exception for error response with 5xx status codes."""
189189
return HTTPError(
190190
f"Received a server error ({status}) for {uri}",
191191
status,
@@ -199,7 +199,7 @@ def _exception_for_unexpected_status(
199199
raw_body: Optional[str],
200200
uri: str,
201201
) -> HTTPError:
202-
"""Returns exception for responses with unexpected status codes."""
202+
"""Return exception for responses with unexpected status codes."""
203203
return HTTPError(
204204
f"Received an unexpected HTTP status ({status}) for {uri}",
205205
status,
@@ -223,7 +223,7 @@ def __init__(
223223
timeout: float = 60,
224224
proxy: Optional[str] = None,
225225
) -> None:
226-
"""Constructor for AsyncClient.
226+
"""Construct AsyncClient.
227227
228228
:param account_id: Your MaxMind account ID
229229
:type account_id: int
@@ -462,7 +462,7 @@ def __init__(
462462
timeout: float = 60,
463463
proxy: Optional[str] = None,
464464
) -> None:
465-
"""Constructor for Client.
465+
"""Construct Client.
466466
467467
:param account_id: Your MaxMind account ID
468468
:type account_id: int

0 commit comments

Comments
 (0)