diff --git a/scalene/scalene_leak_analysis.py b/scalene/scalene_leak_analysis.py index 5ae96d3ba..59b4bc915 100644 --- a/scalene/scalene_leak_analysis.py +++ b/scalene/scalene_leak_analysis.py @@ -1,4 +1,4 @@ -from typing import Any, List, OrderedDict, Tuple +from typing import List, OrderedDict, Tuple from scalene.scalene_statistics import Filename, LineNumber, ScaleneStatistics diff --git a/scalene/scalene_neuron.py b/scalene/scalene_neuron.py index 5b23c7ebc..414a02cae 100644 --- a/scalene/scalene_neuron.py +++ b/scalene/scalene_neuron.py @@ -103,8 +103,7 @@ def has_gpu(self) -> bool: return False else: return True - except subprocess.CalledProcessError as e: - # print(f"Error running neuron-ls: {e}") + except subprocess.CalledProcessError: return False except FileNotFoundError: # print("neuron-ls command not found. Ensure AWS Neuron SDK is installed.") diff --git a/scalene/scalene_statistics.py b/scalene/scalene_statistics.py index 3f95008d1..b13917ed3 100644 --- a/scalene/scalene_statistics.py +++ b/scalene/scalene_statistics.py @@ -7,7 +7,6 @@ from collections import defaultdict from typing import ( Any, - DefaultDict, Dict, List, NewType,