@@ -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