Skip to content

Commit

Permalink
Cleaned up some ruff issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Nov 4, 2024
1 parent 024e8ff commit f28e6ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scalene/scalene_leak_analysis.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions scalene/scalene_neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
1 change: 0 additions & 1 deletion scalene/scalene_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from collections import defaultdict
from typing import (
Any,
DefaultDict,
Dict,
List,
NewType,
Expand Down

0 comments on commit f28e6ac

Please sign in to comment.