Skip to content

Commit

Permalink
Fix toplev MYPY annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Oct 31, 2024
1 parent 1335d80 commit b980100
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 # type: str
desired_cpu = args.force_cpu if args.force_cpu else cpu.model # type: ignore
if desired_cpu in eventlist_alias:
r = eventlist_alias[desired_cpu]
if not os.getenv("EVENTMAP"):
Expand Down

0 comments on commit b980100

Please sign in to comment.