diff --git a/src/vws/async_query.py b/src/vws/async_query.py index f1df2ac7..c229569e 100644 --- a/src/vws/async_query.py +++ b/src/vws/async_query.py @@ -199,4 +199,7 @@ async def query( result_list = list( json.loads(s=response.text)["results"], ) - return [QueryResult.from_response_dict(item) for item in result_list] # type: ignore[misc] + return [ + QueryResult.from_response_dict(response_dict=item) + for item in result_list + ] diff --git a/src/vws/async_vws.py b/src/vws/async_vws.py index b81c5e15..55c2aa1d 100644 --- a/src/vws/async_vws.py +++ b/src/vws/async_vws.py @@ -296,7 +296,9 @@ async def get_target_record(self, target_id: str) -> TargetStatusAndRecord: ) result_data = json.loads(s=response.text) - return TargetStatusAndRecord.from_response_dict(result_data) # type: ignore[misc] + return TargetStatusAndRecord.from_response_dict( + response_dict=result_data, + ) async def wait_for_target_processed( self, @@ -431,7 +433,9 @@ async def get_target_summary_report( ) result_data = dict(json.loads(s=response.text)) - return TargetSummaryReport.from_response_dict(result_data) # type: ignore[misc] + return TargetSummaryReport.from_response_dict( + response_dict=result_data, + ) async def get_database_summary_report( self, @@ -466,7 +470,9 @@ async def get_database_summary_report( ) response_data = dict(json.loads(s=response.text)) - return DatabaseSummaryReport.from_response_dict(response_data) # type: ignore[misc] + return DatabaseSummaryReport.from_response_dict( + response_dict=response_data, + ) async def delete_target(self, target_id: str) -> None: """Delete a given target. diff --git a/src/vws/query.py b/src/vws/query.py index a4810b73..44840d6f 100644 --- a/src/vws/query.py +++ b/src/vws/query.py @@ -165,4 +165,7 @@ def query( raise exception(response=response) result_list = list(json.loads(s=response.text)["results"]) - return [QueryResult.from_response_dict(item) for item in result_list] # type: ignore[misc] + return [ + QueryResult.from_response_dict(response_dict=item) + for item in result_list + ] diff --git a/src/vws/vws.py b/src/vws/vws.py index 346b7d62..c93a9da8 100644 --- a/src/vws/vws.py +++ b/src/vws/vws.py @@ -281,7 +281,9 @@ def get_target_record(self, target_id: str) -> TargetStatusAndRecord: ) result_data = json.loads(s=response.text) - return TargetStatusAndRecord.from_response_dict(result_data) # type: ignore[misc] + return TargetStatusAndRecord.from_response_dict( + response_dict=result_data, + ) def wait_for_target_processed( self, @@ -405,7 +407,9 @@ def get_target_summary_report(self, target_id: str) -> TargetSummaryReport: ) result_data = dict(json.loads(s=response.text)) - return TargetSummaryReport.from_response_dict(result_data) # type: ignore[misc] + return TargetSummaryReport.from_response_dict( + response_dict=result_data, + ) def get_database_summary_report(self) -> DatabaseSummaryReport: """Get a summary report for the database. @@ -438,7 +442,9 @@ def get_database_summary_report(self) -> DatabaseSummaryReport: ) response_data = dict(json.loads(s=response.text)) - return DatabaseSummaryReport.from_response_dict(response_data) # type: ignore[misc] + return DatabaseSummaryReport.from_response_dict( + response_dict=response_data, + ) def delete_target(self, target_id: str) -> None: """Delete a given target.