Skip to content

Commit

Permalink
toplev: Override mypy type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Oct 31, 2024
1 parent 36c2673 commit 1335d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ def update_args_cpu(args, pversion):
if args.show_cpu:
print("%s %s %s" % (cpu.true_name, cpu.pmu_name, cpu.name))
sys.exit(0)
desired_cpu = args.force_cpu if args.force_cpu else cpu.model
desired_cpu = args.force_cpu if args.force_cpu else cpu.model # type: str
if desired_cpu in eventlist_alias:
r = eventlist_alias[desired_cpu]
if not os.getenv("EVENTMAP"):
Expand Down

0 comments on commit 1335d80

Please sign in to comment.