Skip to content

Commit

Permalink
Update python/gui/source/gui.py
Browse files Browse the repository at this point in the history
- Fix E721
  - do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
  • Loading branch information
jrmadsen committed Feb 8, 2024
1 parent b0ee13a commit 94309f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/python/gui/source/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def update_line_graph(

def reset_input_filters(workloads, max_points, verbosity):
sortOptions = ["Alphabetical", "Max Speedup", "Min Speedup", "Impact"]
if type(workloads) == str:
if isinstance(workloads, str):
workloads = [workloads]

input_filters = [
Expand Down

0 comments on commit 94309f5

Please sign in to comment.