From 741839d8e47476e0dbfcd02c8f2b979ff83862b4 Mon Sep 17 00:00:00 2001 From: Maisam Arif Date: Tue, 24 Oct 2023 20:14:58 -0500 Subject: [PATCH] Type & import clean-up Signed-off-by: Maisam Arif Change-Id: Ie09b583a0eb930afc429904e84fe46433ef33b3b --- amdsmi_cli/amdsmi_commands.py | 1 - py-interface/amdsmi_interface.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/amdsmi_cli/amdsmi_commands.py b/amdsmi_cli/amdsmi_commands.py index 7300e6b69d..3cf1704e62 100644 --- a/amdsmi_cli/amdsmi_commands.py +++ b/amdsmi_cli/amdsmi_commands.py @@ -20,7 +20,6 @@ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -import argparse import logging import sys import threading diff --git a/py-interface/amdsmi_interface.py b/py-interface/amdsmi_interface.py index 02be4c5086..1c3d6ec1e7 100644 --- a/py-interface/amdsmi_interface.py +++ b/py-interface/amdsmi_interface.py @@ -385,7 +385,7 @@ class AmdSmiEventReader: ) ) - ret = list() + ret = [] for i in range(0, num_elem): unique_event_values = set(event.value for event in AmdSmiEvtNotificationType) if self.event_info[i].event in unique_event_values: @@ -436,7 +436,7 @@ def _format_bad_page_info(bad_page_info, bad_page_count: ctypes.c_uint32) -> Lis amdsmi_wrapper.amdsmi_retired_page_record_t) ) - table_records = list() + table_records = [] for i in range(bad_page_count.value): table_records.append( {